diff --git a/shared-bindings/audiobusio/PDMIn.c b/shared-bindings/audiobusio/PDMIn.c index c36b717197..601b0c2f84 100644 --- a/shared-bindings/audiobusio/PDMIn.c +++ b/shared-bindings/audiobusio/PDMIn.c @@ -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 ); diff --git a/shared-bindings/canio/Listener.c b/shared-bindings/canio/Listener.c index 96d119349b..ac28ea0df2 100644 --- a/shared-bindings/canio/Listener.c +++ b/shared-bindings/canio/Listener.c @@ -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 );