diff options
Diffstat (limited to 'quantum/encoder.c')
| -rw-r--r-- | quantum/encoder.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/quantum/encoder.c b/quantum/encoder.c index c30bf01cb..8fb87281c 100644 --- a/quantum/encoder.c +++ b/quantum/encoder.c | |||
| @@ -119,6 +119,11 @@ static bool encoder_update(uint8_t index, uint8_t state) { | |||
| 119 | encoder_update_kb(index, ENCODER_CLOCKWISE); | 119 | encoder_update_kb(index, ENCODER_CLOCKWISE); |
| 120 | } | 120 | } |
| 121 | encoder_pulses[i] %= resolution; | 121 | encoder_pulses[i] %= resolution; |
| 122 | #ifdef ENCODER_DEFAULT_POS | ||
| 123 | if ((state & 0x3) == ENCODER_DEFAULT_POS) { | ||
| 124 | encoder_pulses[i] = 0; | ||
| 125 | } | ||
| 126 | #endif | ||
| 122 | return changed; | 127 | return changed; |
| 123 | } | 128 | } |
| 124 | 129 | ||
