diff options
Diffstat (limited to 'power/common.c')
-rw-r--r-- | power/common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/power/common.c b/power/common.c index 13b66f5117..2e2e9e3cc5 100644 --- a/power/common.c +++ b/power/common.c @@ -10,6 +10,7 @@ #include "chipset.h" #include "common.h" #include "console.h" +#include "display_7seg.h" #include "extpower.h" #include "gpio.h" #include "hooks.h" @@ -525,6 +526,8 @@ void chipset_task(void *u) if (this_in_signals != last_in_signals || state != last_state) { CPRINTS("power state %d = %s, in 0x%04x", state, state_names[state], this_in_signals); + if (IS_ENABLED(CONFIG_SEVEN_SEG_DISPLAY)) + display_7seg_write(SEVEN_SEG_EC_DISPLAY, state); last_in_signals = this_in_signals; last_state = state; } |