Fix simulator when there is no rotary encoder and no PLUS / MINUS keys

This commit is contained in:
Raphael Coeffic
2021-08-01 11:05:01 +02:00
parent 8172d38906
commit fde67702d2
+1 -1
View File
@@ -274,7 +274,7 @@ void OpenTxSimulator::rotaryEncoderEvent(int steps)
key = KEY_DOWN;
else if (steps < 0)
key = KEY_UP;
#elif defined(HARDWARE_KEYS)
#elif defined(KEYS_GPIO_REG_PLUS) && defined(KEYS_GPIO_REG_MINUS)
if (steps > 0)
key = KEY_MINUS;
else if (steps < 0)