Skip to content

Commit

Permalink
Save a single byte of memory for joystick buttons (#15555)
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Challis <[email protected]>
  • Loading branch information
broekema and zvecr authored Dec 24, 2021
1 parent 435fa2c commit c4b0350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantum/joystick.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ extern joystick_config_t joystick_axes[JOYSTICK_AXES_COUNT];
enum joystick_status { JS_INITIALIZED = 1, JS_UPDATED = 2 };

typedef struct {
uint8_t buttons[JOYSTICK_BUTTON_COUNT / 8 + 1];
uint8_t buttons[(JOYSTICK_BUTTON_COUNT - 1) / 8 + 1];

int16_t axes[JOYSTICK_AXES_COUNT];
uint8_t status : 2;
Expand Down

0 comments on commit c4b0350

Please sign in to comment.