Skip to content

Commit

Permalink
pybricks.iodevices.XboxController: Fix maximum button list size.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensvalk committed Feb 16, 2024
1 parent 451ceb1 commit 9610d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybricks/iodevices/pb_type_iodevices_xbox_controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(pb_xbox_triggers_obj, pb_xbox_triggers);
STATIC mp_obj_t pb_xbox_pressed(mp_obj_t self_in) {
xbox_input_map_t *buttons = pb_xbox_get_buttons();

mp_obj_t items[10];
mp_obj_t items[16];
uint8_t count = 0;

if (buttons->buttons & 1) {
Expand Down

0 comments on commit 9610d03

Please sign in to comment.