qmk_firmware

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

commit d93dfbff3cdec41d9a6a226bcddeec0270b20aca
parent 7f2ddf17119af17a3b03a3ced1b46dab216b1522
Author: Drashna Jaelre <drashna@live.com>
Date:   Fri, 29 Jul 2022 17:32:06 -0700

Fix check when compiling HID Joystick with digital driver (#17844)


Diffstat:
Mquantum/process_keycode/process_joystick.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/quantum/process_keycode/process_joystick.c b/quantum/process_keycode/process_joystick.c @@ -106,7 +106,7 @@ bool process_joystick_analogread_quantum() { wait_us(10); -# if defined(__AVR__) || defined(PROTOCOL_CHIBIOS) +# if defined(ANALOG_JOYSTICK_ENABLE) && (defined(__AVR__) || defined(PROTOCOL_CHIBIOS)) int16_t axis_val = analogReadPin(joystick_axes[axis_index].input_pin); # else // default to resting position