Skip to content

Commit e97c160

Browse files
committed
pybricks.hubs.EssentialHub: Rename buttons to button.
This was copied from the Prime Hub, but the Essential Hub has only one button, just like the City Hub and Technic Hub.
1 parent fe582c5 commit e97c160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pybricks/hubs/pb_type_essentialhub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ STATIC mp_obj_t hubs_EssentialHub_make_new(const mp_obj_type_t *type, size_t n_a
4949

5050
STATIC const mp_rom_map_elem_t hubs_EssentialHub_locals_dict_table[] = {
5151
{ MP_ROM_QSTR(MP_QSTR_battery), MP_ROM_PTR(&pb_module_battery) },
52-
{ MP_ROM_QSTR(MP_QSTR_buttons), MP_ROM_ATTRIBUTE_OFFSET(hubs_EssentialHub_obj_t, buttons) },
52+
{ MP_ROM_QSTR(MP_QSTR_button), MP_ROM_ATTRIBUTE_OFFSET(hubs_EssentialHub_obj_t, buttons) },
5353
{ MP_ROM_QSTR(MP_QSTR_imu), MP_ROM_ATTRIBUTE_OFFSET(hubs_EssentialHub_obj_t, imu) },
5454
{ MP_ROM_QSTR(MP_QSTR_light), MP_ROM_ATTRIBUTE_OFFSET(hubs_EssentialHub_obj_t, light) },
5555
{ MP_ROM_QSTR(MP_QSTR_system), MP_ROM_PTR(&pb_type_System) },

0 commit comments

Comments
 (0)