Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
a6354238
Commit
a6354238
authored
Apr 26, 2016
by
Damien George
Browse files
extmod, stmhal: Fix typo of macro that detects if float is enabled.
parent
90b2cfe6
Changes
2
Hide whitespace changes
Inline
Side-by-side
extmod/modlwip.c
View file @
a6354238
...
...
@@ -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_BUILTIN
S
_FLOAT
timeout
=
1000
*
mp_obj_get_float
(
timeout_in
);
#else
timeout
=
1000
*
mp_obj_get_int
(
timeout_in
);
...
...
stmhal/modusocket.c
View file @
a6354238
...
...
@@ -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_BUILTIN
S
_FLOAT
timeout
=
1000
*
mp_obj_get_float
(
timeout_in
);
#else
timeout
=
1000
*
mp_obj_get_int
(
timeout_in
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment