From f6cca5ca72332deaa8d851c2ef74e51fbc7377d4 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Sat, 27 Sep 2014 12:12:12 +0200 Subject: [PATCH] light: fix copy switch off --- kernel/sy_old/mars_light.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sy_old/mars_light.c b/kernel/sy_old/mars_light.c index 9437a0cf..f23237d7 100644 --- a/kernel/sy_old/mars_light.c +++ b/kernel/sy_old/mars_light.c @@ -1480,7 +1480,7 @@ int __make_copy( NULL, (const struct generic_brick_type*)&bio_brick_type, (const struct generic_brick_type*[]){}, - switch_copy ? 2 : -1, + switch_copy || (copy && !copy->power.led_off) ? 2 : -1, cc.fullpath[i], (const char *[]){}, 0);