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

This commit is contained in:
Drashna Jaelre 2022-07-29 17:32:06 -07:00 committed by GitHub
parent 7f2ddf1711
commit d93dfbff3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ bool process_joystick_analogread_quantum() {
wait_us(10); 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); int16_t axis_val = analogReadPin(joystick_axes[axis_index].input_pin);
# else # else
// default to resting position // default to resting position