From a63542387d1689f05bb102eef83baa2235e6d1e6 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 26 Apr 2016 12:47:24 +0100 Subject: [PATCH] extmod, stmhal: Fix typo of macro that detects if float is enabled. --- extmod/modlwip.c | 2 +- stmhal/modusocket.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extmod/modlwip.c b/extmod/modlwip.c index 4924130ccf..9502018a58 100644 --- a/extmod/modlwip.c +++ b/extmod/modlwip.c @@ -966,7 +966,7 @@ STATIC mp_obj_t lwip_socket_settimeout(mp_obj_t self_in, mp_obj_t timeout_in) { if (timeout_in == mp_const_none) { timeout = -1; } else { - #if MICROPY_PY_BUILTIN_FLOAT + #if MICROPY_PY_BUILTINS_FLOAT timeout = 1000 * mp_obj_get_float(timeout_in); #else timeout = 1000 * mp_obj_get_int(timeout_in); diff --git a/stmhal/modusocket.c b/stmhal/modusocket.c index 8e461fe9cc..8da56fa8bb 100644 --- a/stmhal/modusocket.c +++ b/stmhal/modusocket.c @@ -320,7 +320,7 @@ STATIC mp_obj_t socket_settimeout(mp_obj_t self_in, mp_obj_t timeout_in) { if (timeout_in == mp_const_none) { timeout = -1; } else { - #if MICROPY_PY_BUILTIN_FLOAT + #if MICROPY_PY_BUILTINS_FLOAT timeout = 1000 * mp_obj_get_float(timeout_in); #else timeout = 1000 * mp_obj_get_int(timeout_in);