diff --git a/epicardium/modules/pmic.c b/epicardium/modules/pmic.c index af336fe749491b1fd14868a05df8b5796c056101..f87605326de16f6e99dd4e13f0496e8d7cb39d35 100644 --- a/epicardium/modules/pmic.c +++ b/epicardium/modules/pmic.c @@ -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) {