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:
parent
6a520f18cf
commit
ce7cb7f7e9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue