infra: re-trigger when switching has not succeeded

This commit is contained in:
Thomas Schoebel-Theuer 2020-01-29 07:37:32 +01:00
parent 47b6ee5a1e
commit bc0be4fd19

View File

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