File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -453,6 +453,7 @@ void background_callback_run_all(void);
453
453
454
454
#define MICROPY_VM_HOOK_LOOP RUN_BACKGROUND_TASKS;
455
455
#define MICROPY_VM_HOOK_RETURN RUN_BACKGROUND_TASKS;
456
+ #define MICROPY_INTERNAL_EVENT_HOOK (RUN_BACKGROUND_TASKS)
456
457
457
458
// CIRCUITPY_AUTORELOAD_DELAY_MS = 0 will completely disable autoreload.
458
459
#ifndef CIRCUITPY_AUTORELOAD_DELAY_MS
Original file line number Diff line number Diff line change @@ -277,10 +277,6 @@ void mp_event_wait_indefinite(void) {
277
277
MICROPY_EVENT_POLL_HOOK
278
278
#else
279
279
mp_event_handle_nowait ();
280
-
281
- // CIRCUITPY-CHANGE: don't starve CircuitPython background tasks
282
- RUN_BACKGROUND_TASKS ;
283
-
284
280
MICROPY_INTERNAL_WFE (-1 );
285
281
#endif
286
282
}
@@ -293,10 +289,6 @@ void mp_event_wait_ms(mp_uint_t timeout_ms) {
293
289
MICROPY_EVENT_POLL_HOOK
294
290
#else
295
291
mp_event_handle_nowait ();
296
-
297
- // CIRCUITPY-CHANGE: don't starve CircuitPython background tasks
298
- RUN_BACKGROUND_TASKS ;
299
-
300
292
MICROPY_INTERNAL_WFE (timeout_ms );
301
293
#endif
302
294
}
You can’t perform that action at this time.
0 commit comments