[X9E/X7D] Rotary encoder navigation speed implemented (#3724)

This commit is contained in:
Bertrand Songis
2016-08-27 18:19:44 +02:00
committed by Andre Bernet
parent 3cb64d984a
commit 1d735f2bd3
114 changed files with 785 additions and 865 deletions
+3 -3
View File
@@ -40,7 +40,7 @@ void rotencPoll()
{
#if defined(TELEMETREZ)
if (TrotCount != LastTrotCount) {
g_rotenc[0] = LastTrotCount = TrotCount ;
rotencValue[0] = LastTrotCount = TrotCount ;
}
#else
// Rotary Encoder polling
@@ -64,10 +64,10 @@ void rotencPoll()
x <<= 1 ;
x ^= rotary & 0x80 ;
if ( x ) {
g_rotenc[0] -= 1 ;
rotencValue[0] -= 1 ;
}
else {
g_rotenc[0] += 1 ;
rotencValue[0] += 1 ;
}
RotPosition = rotary ;
}