diff options
| author | Drashna Jaelre <drashna@live.com> | 2022-07-29 17:32:06 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-30 01:32:06 +0100 |
| commit | d93dfbff3cdec41d9a6a226bcddeec0270b20aca (patch) | |
| tree | 90d2cf06c392693ef349a87356353e56221e55aa /quantum/process_keycode | |
| parent | 7f2ddf17119af17a3b03a3ced1b46dab216b1522 (diff) | |
Fix check when compiling HID Joystick with digital driver (#17844)
Diffstat (limited to 'quantum/process_keycode')
| -rw-r--r-- | quantum/process_keycode/process_joystick.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_joystick.c b/quantum/process_keycode/process_joystick.c index 8c3e71616f..e867606074 100644 --- a/quantum/process_keycode/process_joystick.c +++ b/quantum/process_keycode/process_joystick.c | |||
| @@ -106,7 +106,7 @@ bool process_joystick_analogread_quantum() { | |||
| 106 | 106 | ||
| 107 | wait_us(10); | 107 | wait_us(10); |
| 108 | 108 | ||
| 109 | # if defined(__AVR__) || defined(PROTOCOL_CHIBIOS) | 109 | # if defined(ANALOG_JOYSTICK_ENABLE) && (defined(__AVR__) || defined(PROTOCOL_CHIBIOS)) |
| 110 | int16_t axis_val = analogReadPin(joystick_axes[axis_index].input_pin); | 110 | int16_t axis_val = analogReadPin(joystick_axes[axis_index].input_pin); |
| 111 | # else | 111 | # else |
| 112 | // default to resting position | 112 | // default to resting position |
