Warnings fixed and remarks from #3666 taken into account

This commit is contained in:
Bertrand Songis
2016-08-01 07:16:33 +02:00
parent f74381bafa
commit 6c34752907
5 changed files with 25 additions and 21 deletions
+4 -4
View File
@@ -96,10 +96,10 @@ void OpenTxSimulator::start(QByteArray & ee, bool tests)
void OpenTxSimulator::start(const char * filename, bool tests)
{
#if defined(PCBSKY9X) && !defined(REVX) && !defined(AR9X)
g_rotenc[0] = 0;
#elif defined(PCBGRUVIN9X)
#if ROTARY_ENCODERS > 0
g_rotenc[0] = 0;
#endif
#if ROTARY_ENCODERS > 1
g_rotenc[1] = 0;
#endif
@@ -165,7 +165,7 @@ void OpenTxSimulator::wheelEvent(int steps)
rotencValue -= 2;
else
rotencValue += 2;
#elif defined(PCBSKY9X) && !defined(REVX) && !defined(AR9X)
#elif defined(PCBSKY9X) && ROTARY_ENCODERS > 0
g_rotenc[0] += steps*4;
#elif defined(PCBGRUVIN9X)
g_rotenc[0] += steps;