improved Horus rotary encoder driver and generic behavior (#5510)

Improved Horus rotary encoder driver
This commit is contained in:
Raphael Coeffic
2017-12-18 23:12:29 +01:00
committed by Bertrand Songis
parent 04547a9206
commit d13e770ac4
3 changed files with 89 additions and 33 deletions
+2
View File
@@ -769,6 +769,8 @@ int getTrimValue(uint8_t phase, uint8_t idx);
#define ROTARY_ENCODER_GRANULARITY (1)
#elif 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