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