kopia lustrzana https://github.com/OpenRTX/OpenRTX
Reduce encoder sensitivity on T-TWR Plus
Reduce encoder sensitivity on T-TWR Plus by dividing the pulse counter input by two. TG-553pull/200/head
rodzic
e939218001
commit
04d6d01a5c
|
@ -79,7 +79,7 @@ keyboard_t kbd_getKeys()
|
||||||
keys &= ~KNOB_RIGHT;
|
keys &= ~KNOB_RIGHT;
|
||||||
|
|
||||||
// Read rotary encoder to send KNOB_LEFT and KNOB_RIGHT events
|
// 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)
|
if (old_pos != new_pos)
|
||||||
{
|
{
|
||||||
int8_t delta = new_pos - old_pos;
|
int8_t delta = new_pos - old_pos;
|
||||||
|
|
Ładowanie…
Reference in New Issue