Skip to content

Commit

Permalink
Fix check when compiling HID Joystick with digital driver (#17844)
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna authored Jul 30, 2022
1 parent 7f2ddf1 commit d93dfbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantum/process_keycode/process_joystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d93dfbf

Please sign in to comment.