summaryrefslogtreecommitdiff
path: root/teensy/modpyb.c
diff options
context:
space:
mode:
Diffstat (limited to 'teensy/modpyb.c')
-rw-r--r--teensy/modpyb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/teensy/modpyb.c b/teensy/modpyb.c
index 0240395dc..435b198d0 100644
--- a/teensy/modpyb.c
+++ b/teensy/modpyb.c
@@ -164,7 +164,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_0(pyb_millis_obj, pyb_millis);
/// \function delay(ms)
/// Delay for the given number of milliseconds.
STATIC mp_obj_t pyb_delay(mp_obj_t ms_in) {
- machine_int_t ms = mp_obj_get_int(ms_in);
+ mp_int_t ms = mp_obj_get_int(ms_in);
if (ms >= 0) {
HAL_Delay(ms);
}
@@ -175,7 +175,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(pyb_delay_obj, pyb_delay);
/// \function udelay(us)
/// Delay for the given number of microseconds.
STATIC mp_obj_t pyb_udelay(mp_obj_t usec_in) {
- machine_int_t usec = mp_obj_get_int(usec_in);
+ mp_int_t usec = mp_obj_get_int(usec_in);
delayMicroseconds(usec);
return mp_const_none;
}