From 04d6d01a5c306705e5653b51dad12664f0d06026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Izzo?= Date: Sun, 8 Oct 2023 22:27:29 +0200 Subject: [PATCH] Reduce encoder sensitivity on T-TWR Plus Reduce encoder sensitivity on T-TWR Plus by dividing the pulse counter input by two. TG-553 --- platform/drivers/keyboard/keyboard_ttwrplus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/drivers/keyboard/keyboard_ttwrplus.c b/platform/drivers/keyboard/keyboard_ttwrplus.c index f1c4018c..e150fa41 100644 --- a/platform/drivers/keyboard/keyboard_ttwrplus.c +++ b/platform/drivers/keyboard/keyboard_ttwrplus.c @@ -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;