mirror of
https://github.com/schoebel/mars
synced 2024-12-27 00:52:21 +00:00
infra: re-trigger when switching has not succeeded
This commit is contained in:
parent
47b6ee5a1e
commit
bc0be4fd19
@ -1125,7 +1125,7 @@ int mars_power_button(struct mars_brick *brick, bool val, bool force_off)
|
||||
*/
|
||||
status = brick->ops->brick_switch(brick);
|
||||
|
||||
if (val != oldval) {
|
||||
if (val != oldval || status < 0) {
|
||||
mars_trigger();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user