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, audiobusio_pdmin_type,
MP_QSTR_PDMIn, MP_QSTR_PDMIn,
MP_TYPE_FLAG_NONE, MP_TYPE_FLAG_NONE,
make_new, audiobusio_pdmin_make_new, make_new, audiobusio_pdmin_make_new
#if CIRCUITPY_AUDIOBUSIO_PDMIN #if CIRCUITPY_AUDIOBUSIO_PDMIN
locals_dict, &audiobusio_pdmin_locals_dict , locals_dict, &audiobusio_pdmin_locals_dict
#endif #endif
); );

View File

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