Skip to content
Snippets Groups Projects
Verified Commit 0bb730d5 authored by rahix's avatar rahix
Browse files

fix(pmic): Fix interrupts getting ignored during startup


Fixes #156

Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 4a41bc9a
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment