diff options
Diffstat (limited to 'extmod/moduselect.c')
-rw-r--r-- | extmod/moduselect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/moduselect.c b/extmod/moduselect.c index 122365607f..80beb8e09b 100644 --- a/extmod/moduselect.c +++ b/extmod/moduselect.c @@ -125,7 +125,7 @@ STATIC mp_obj_t select_select(size_t n_args, const mp_obj_t *args) { if (n_args == 4) { if (args[3] != mp_const_none) { #if MICROPY_PY_BUILTINS_FLOAT - float timeout_f = mp_obj_get_float(args[3]); + float timeout_f = mp_obj_get_float_to_f(args[3]); if (timeout_f >= 0) { timeout = (mp_uint_t)(timeout_f * 1000); } |