mirror of
https://github.com/schoebel/mars
synced 2024-12-24 07:32:46 +00:00
infra: power override only for on transition
This commit is contained in:
parent
3b87d70162
commit
9bad724f50
@ -2978,8 +2978,9 @@ struct mars_brick *make_brick_all(
|
||||
}
|
||||
MARS_DBG("------> predecessor %d path = '%s'\n", i, path);
|
||||
if (!prev[i]->power.led_on) {
|
||||
switch_state = false;
|
||||
MARS_DBG("predecessor power is not on\n");
|
||||
if (!brick || !brick->power.button)
|
||||
switch_state = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user