Reduce encoder sensitivity on T-TWR Plus

Reduce encoder sensitivity on T-TWR Plus by dividing the pulse counter
input by two.

TG-553
This commit is contained in:
Niccolò Izzo 2023-10-08 22:27:29 +02:00
parent e939218001
commit 04d6d01a5c
No known key found for this signature in database
GPG Key ID: 52C4B7CBFC4C41A1
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ keyboard_t kbd_getKeys()
keys &= ~KNOB_RIGHT;
// Read rotary encoder to send KNOB_LEFT and KNOB_RIGHT events
int8_t new_pos = platform_getChSelector();
int8_t new_pos = platform_getChSelector() / 2;
if (old_pos != new_pos)
{
int8_t delta = new_pos - old_pos;