mirror of
https://github.com/schoebel/mars
synced 2025-04-11 03:51:40 +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);
|
status = brick->ops->brick_switch(brick);
|
||||||
|
|
||||||
if (val != oldval) {
|
if (val != oldval || status < 0) {
|
||||||
mars_trigger();
|
mars_trigger();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user