modparameters: make Button always available
A hub may not have buttons, but compatible remote controls do.
@@ -173,9 +173,6 @@ STATIC const mp_rom_map_elem_t pb_Color_enum_table[] = {
};
PB_DEFINE_ENUM(pb_enum_type_Color, MP_QSTR_Color, pb_Color_enum_table);
-
-#if PYBRICKS_PY_BUTTONS
-
/* Button enum */
const pb_obj_enum_member_t pb_const_btn_up = {
@@ -252,8 +249,6 @@ STATIC const mp_rom_map_elem_t pb_enum_Button_table[] = {
};
PB_DEFINE_ENUM(pb_enum_type_Button, MP_QSTR_Button, pb_enum_Button_table);
-#endif // PYBRICKS_PY_BUTTONS
-
/*
parameters module tables
*/
