diff --git a/kernel/sy_old/sy_generic.c b/kernel/sy_old/sy_generic.c index e650c5bf..81c74701 100644 --- a/kernel/sy_old/sy_generic.c +++ b/kernel/sy_old/sy_generic.c @@ -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(); }