Skip to content

Commit

Permalink
pybricks.hubs.EssentialHub: Rename buttons to button.
Browse files Browse the repository at this point in the history
This was copied from the Prime Hub, but the Essential Hub has only one button, just like the City Hub and Technic Hub.
  • Loading branch information
laurensvalk committed Sep 21, 2021
1 parent fe582c5 commit e97c160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybricks/hubs/pb_type_essentialhub.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ STATIC mp_obj_t hubs_EssentialHub_make_new(const mp_obj_type_t *type, size_t n_a

STATIC const mp_rom_map_elem_t hubs_EssentialHub_locals_dict_table[] = {
{ MP_ROM_QSTR(MP_QSTR_battery), MP_ROM_PTR(&pb_module_battery) },
{ MP_ROM_QSTR(MP_QSTR_buttons), MP_ROM_ATTRIBUTE_OFFSET(hubs_EssentialHub_obj_t, buttons) },
{ MP_ROM_QSTR(MP_QSTR_button), MP_ROM_ATTRIBUTE_OFFSET(hubs_EssentialHub_obj_t, buttons) },
{ MP_ROM_QSTR(MP_QSTR_imu), MP_ROM_ATTRIBUTE_OFFSET(hubs_EssentialHub_obj_t, imu) },
{ MP_ROM_QSTR(MP_QSTR_light), MP_ROM_ATTRIBUTE_OFFSET(hubs_EssentialHub_obj_t, light) },
{ MP_ROM_QSTR(MP_QSTR_system), MP_ROM_PTR(&pb_type_System) },
Expand Down

0 comments on commit e97c160

Please sign in to comment.