summaryrefslogtreecommitdiff
path: root/esp8266/modpyb.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-10-29 13:03:44 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-10-29 13:03:59 +0300
commitebd9f550e8e0916e1b6b86720044e402201b5a69 (patch)
tree04721b3510f93ba63d2d4847f286f08f0e5c91d9 /esp8266/modpyb.c
parent5699fc9d0e16b89b8052d29db9a3c5a349dab94a (diff)
esp8266: Switch to standard mp_hal_delay_ms() MPHAL function.
Diffstat (limited to 'esp8266/modpyb.c')
-rw-r--r--esp8266/modpyb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/esp8266/modpyb.c b/esp8266/modpyb.c
index 45096f8cb..8d3e98c99 100644
--- a/esp8266/modpyb.c
+++ b/esp8266/modpyb.c
@@ -128,7 +128,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(pyb_elapsed_micros_obj, pyb_elapsed_micros);
STATIC mp_obj_t pyb_delay(mp_obj_t ms_in) {
mp_int_t ms = mp_obj_get_int(ms_in);
if (ms >= 0) {
- HAL_Delay(ms);
+ mp_hal_delay_ms(ms);
}
return mp_const_none;
}