diff options
Diffstat (limited to 'extmod/utime_mphal.c')
-rw-r--r-- | extmod/utime_mphal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/utime_mphal.c b/extmod/utime_mphal.c index d053cf128..3d1cdfd82 100644 --- a/extmod/utime_mphal.c +++ b/extmod/utime_mphal.c @@ -48,7 +48,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(mp_utime_sleep_obj, time_sleep); STATIC mp_obj_t time_sleep_ms(mp_obj_t arg) { mp_int_t ms = mp_obj_get_int(arg); - if (ms > 0) { + if (ms >= 0) { mp_hal_delay_ms(ms); } return mp_const_none; |