summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;