light sleep reason fix.

This commit is contained in:
jun2sak 2021-02-17 21:51:28 +09:00
parent e6350ff834
commit cf2427c561

View File

@ -144,6 +144,7 @@ STATIC void _setup_sleep_alarms(bool deep_sleep, size_t n_alarms, const mp_obj_t
STATIC void _idle_until_alarm(void) {
int ct = 40;
reset_reason_saved = 0;
// Poll for alarms.
while (!mp_hal_is_interrupted()) {
RUN_BACKGROUND_TASKS;