fixes for stm and mimxrt10xx

This commit is contained in:
Dan Halbert 2023-10-07 23:24:49 -04:00
parent 85650bf1ab
commit ca7be16209
2 changed files with 4 additions and 4 deletions

View File

@ -245,8 +245,8 @@ MP_DEFINE_CONST_OBJ_TYPE(
audiobusio_pdmin_type,
MP_QSTR_PDMIn,
MP_TYPE_FLAG_NONE,
make_new, audiobusio_pdmin_make_new,
make_new, audiobusio_pdmin_make_new
#if CIRCUITPY_AUDIOBUSIO_PDMIN
locals_dict, &audiobusio_pdmin_locals_dict
, locals_dict, &audiobusio_pdmin_locals_dict
#endif
);

View File

@ -170,6 +170,6 @@ MP_DEFINE_CONST_OBJ_TYPE(
canio_listener_type,
MP_QSTR_Listener,
MP_TYPE_FLAG_ITER_IS_ITERNEXT,
.locals_dict = (mp_obj_dict_t *)&canio_listener_locals_dict,
.iternext = canio_iternext
locals_dict, &canio_listener_locals_dict,
iter, canio_iternext
);