qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

commit c4b03509da094c6dd72def69edff86d29326aeaa
parent 435fa2c391348f604f122dadba4f2af9306d085c
Author: Chris Broekema <broekema-github@fuzzms.nl>
Date:   Fri, 24 Dec 2021 23:31:15 +0100

Save a single byte of memory for joystick buttons (#15555)

Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat:
Mquantum/joystick.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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;