Reduce encoder sensitivity on T-TWR Plus

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

TG-553
pull/200/head
Niccolò Izzo 2023-10-08 22:27:29 +02:00
rodzic e939218001
commit 04d6d01a5c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 52C4B7CBFC4C41A1
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;