diff options
Diffstat (limited to 'extmod/machine_i2c.c')
-rw-r--r-- | extmod/machine_i2c.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/extmod/machine_i2c.c b/extmod/machine_i2c.c index 6cc2aa5bbf..1964284ec8 100644 --- a/extmod/machine_i2c.c +++ b/extmod/machine_i2c.c @@ -331,11 +331,7 @@ STATIC mp_obj_t machine_i2c_scan(mp_obj_t self_in) { // This scan loop may run for some time, so process any pending events/exceptions, // or allow the port to run any necessary background tasks. But do it as fast as // possible, in particular we are not waiting on any events. - #if defined(MICROPY_EVENT_POLL_HOOK_FAST) - MICROPY_EVENT_POLL_HOOK_FAST; - #elif defined(MICROPY_EVENT_POLL_HOOK) - MICROPY_EVENT_POLL_HOOK - #endif + mp_event_handle_nowait(); } return list; } |