From c5160d8102e6709186f4177bc751230f729a5416 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sun, 29 May 2022 13:09:27 +0200 Subject: [PATCH] fix: disable rotary encoder polling in per10ms() only for stdlcd targets --- radio/src/opentx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index eee995bba..d37e86b44 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -180,7 +180,7 @@ void per10ms() evalFunctionSwitches(); #endif -#if defined(ROTARY_ENCODER_NAVIGATION) && 0 +#if defined(ROTARY_ENCODER_NAVIGATION) && !defined(LIBOPENUI) if (IS_ROTARY_ENCODER_NAVIGATION_ENABLE()) { static rotenc_t rePreviousValue; static bool cw = false;