light: fix copy switch off

This commit is contained in:
Thomas Schoebel-Theuer 2014-09-27 12:12:12 +02:00
parent b0171749a4
commit f6cca5ca72
1 changed files with 1 additions and 1 deletions

View File

@ -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);