event: reset button pressed event updates
Existing code doesn't handle "resetButtonPressed" correctly.
This commits adds the "resetButtonPressed" event handling
during power state on.
Tested: Verified power sequencing on AMD CRB Onyx.
Change-Id: I65e5b2236032f7b04b4345da752b467981409612
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/src/power_control.cpp b/src/power_control.cpp
index 2257484..8ceac4f 100644
--- a/src/power_control.cpp
+++ b/src/power_control.cpp
@@ -1739,6 +1739,10 @@
gracefulPowerOffTimerStart();
gracefulPowerOff();
break;
+ case Event::resetButtonPressed:
+ setPowerState(PowerState::checkForWarmReset);
+ warmResetCheckTimerStart();
+ break;
case Event::resetRequest:
reset();
break;