py/obj: Add accessors for type slots and use everywhere.
This is a no-op, but sets the stage for changing the mp_obj_type_t representation. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
committed by
Damien George
parent
e8355eb163
commit
a52cd5b07d
@@ -91,7 +91,7 @@ STATIC mp_obj_t scan_entry_get_scan_data(mp_obj_t self_in) {
|
||||
|
||||
mp_obj_t description = mp_const_none;
|
||||
|
||||
mp_map_t *constant_map = mp_obj_dict_get_map(ubluepy_constants_ad_types_type.locals_dict);
|
||||
mp_map_t *constant_map = mp_obj_dict_get_map(MP_OBJ_TYPE_GET_SLOT(&ubluepy_constants_ad_types_type, locals_dict));
|
||||
mp_map_elem_t *ad_types_table = MP_OBJ_TO_PTR(constant_map->table);
|
||||
|
||||
uint16_t num_of_elements = constant_map->used;
|
||||
|
||||
Reference in New Issue
Block a user