From fde67702d227af703345e40836d027e0ee9aa47a Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sun, 1 Aug 2021 11:05:01 +0200 Subject: [PATCH] Fix simulator when there is no rotary encoder and no PLUS / MINUS keys --- radio/src/targets/simu/opentxsimulator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/targets/simu/opentxsimulator.cpp b/radio/src/targets/simu/opentxsimulator.cpp index 001962264..8a1ec7e6e 100644 --- a/radio/src/targets/simu/opentxsimulator.cpp +++ b/radio/src/targets/simu/opentxsimulator.cpp @@ -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)