We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b2a97a commit 8ce2266Copy full SHA for 8ce2266
ports/esp8266/modmachine.c
@@ -92,6 +92,7 @@ STATIC mp_obj_t machine_idle(void) {
92
uint32_t t = mp_hal_ticks_cpu();
93
asm("waiti 0");
94
t = mp_hal_ticks_cpu() - t;
95
+ ets_event_poll(); // handle any events after possibly a long wait (eg feed WDT)
96
return MP_OBJ_NEW_SMALL_INT(t);
97
}
98
STATIC MP_DEFINE_CONST_FUN_OBJ_0(machine_idle_obj, machine_idle);
0 commit comments