Skip to content

Commit a635423

Browse files
committed
extmod, stmhal: Fix typo of macro that detects if float is enabled.
1 parent 90b2cfe commit a635423

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

extmod/modlwip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ STATIC mp_obj_t lwip_socket_settimeout(mp_obj_t self_in, mp_obj_t timeout_in) {
966966
if (timeout_in == mp_const_none) {
967967
timeout = -1;
968968
} else {
969-
#if MICROPY_PY_BUILTIN_FLOAT
969+
#if MICROPY_PY_BUILTINS_FLOAT
970970
timeout = 1000 * mp_obj_get_float(timeout_in);
971971
#else
972972
timeout = 1000 * mp_obj_get_int(timeout_in);

stmhal/modusocket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ STATIC mp_obj_t socket_settimeout(mp_obj_t self_in, mp_obj_t timeout_in) {
320320
if (timeout_in == mp_const_none) {
321321
timeout = -1;
322322
} else {
323-
#if MICROPY_PY_BUILTIN_FLOAT
323+
#if MICROPY_PY_BUILTINS_FLOAT
324324
timeout = 1000 * mp_obj_get_float(timeout_in);
325325
#else
326326
timeout = 1000 * mp_obj_get_int(timeout_in);

0 commit comments

Comments
 (0)