1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-13 11:29:51 +03:00

Fix Horus bootloader needing 2 encoder clicks per line

This commit is contained in:
Kilrah 2018-08-05 15:47:57 +02:00
parent 6a520f18cf
commit ce7cb7f7e9

View file

@ -88,7 +88,7 @@ void interrupt10ms(void)
#if defined(ROTARY_ENCODER_NAVIGATION)
checkRotaryEncoder();
static rotenc_t rePreviousValue;
rotenc_t reNewValue = (rotencValue[0] / 2);
rotenc_t reNewValue = (rotencValue[0] / ROTARY_ENCODER_GRANULARITY);
int8_t scrollRE = reNewValue - rePreviousValue;
if (scrollRE) {
rePreviousValue = reNewValue;