diff options
Diffstat (limited to 'stmhal/spi.c')
-rw-r--r-- | stmhal/spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/spi.c b/stmhal/spi.c index 448b8696ea..52f80ce292 100644 --- a/stmhal/spi.c +++ b/stmhal/spi.c @@ -314,7 +314,7 @@ STATIC mp_obj_t pyb_spi_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_arg_check_num(n_args, n_kw, 1, MP_OBJ_FUN_ARGS_MAX, true); // get SPI number - machine_int_t spi_id = mp_obj_get_int(args[0]) - 1; + mp_int_t spi_id = mp_obj_get_int(args[0]) - 1; // check SPI number if (!(0 <= spi_id && spi_id < PYB_NUM_SPI && pyb_spi_obj[spi_id].spi != NULL)) { |