Verified Commit 0bb730d5 authored by Rahix's avatar Rahix
Browse files

fix(pmic): Fix interrupts getting ignored during startup

Fixes #156

Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 4a41bc9a
Pipeline #3930 passed with stages
in 2 minutes and 7 seconds
......@@ -314,6 +314,13 @@ void vPmicTask(void *pvParameters)
}
xTimerStart(pmic_timer, 0);
/*
* Poll once before going to sleep in case the PMIC had triggered an
* interrupt already. This can occur, for example, if the user presses
* the power-button during the version splash-screen.
*/
pmic_poll_interrupts(&button_start_tick, 0);
while (1) {
uint32_t reason;
if (button_start_tick == 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment