summaryrefslogtreecommitdiffstats
path: root/quantum
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-12-24 22:31:48 +0000
committerQMK Bot <hello@qmk.fm>2021-12-24 22:31:48 +0000
commit53472a4e7b7373f1a733e7264d023c4b1b6a9893 (patch)
tree4c1a1de7188d3a65ee4ab68476ce9b11aaf2f81d /quantum
parente24fe0832b97bd4e37a7c57508330c649ef8b202 (diff)
parentc4b03509da094c6dd72def69edff86d29326aeaa (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'quantum')
-rw-r--r--quantum/joystick.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/joystick.h b/quantum/joystick.h
index 87dbc24aff..9156491aca 100644
--- a/quantum/joystick.h
+++ b/quantum/joystick.h
@@ -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;