Bsongis/rotary encoder delay (#6503)

Rotary encoder fixed on X10 / X12S
This commit is contained in:
Bertrand Songis
2019-06-14 19:19:52 +02:00
committed by GitHub
parent 618bcfe72f
commit 55ec942610
16 changed files with 195 additions and 146 deletions
+1 -2
View File
@@ -28,6 +28,7 @@
#include <math.h>
#include "definitions.h"
#include "opentx_types.h"
#include "debounce.h"
#if defined(STM32)
#include "usbd_conf.h"
@@ -542,8 +543,6 @@ bool setTrimValue(uint8_t phase, uint8_t idx, int trim);
#if defined(PCBSKY9X)
#define ROTARY_ENCODER_GRANULARITY (2 << g_eeGeneral.rotarySteps)
#elif defined(PCBHORUS)
#define ROTARY_ENCODER_GRANULARITY (1)
#else
#define ROTARY_ENCODER_GRANULARITY (2)
#endif