From d0791fa0c22e71cb1b8f89c60e4ca96198eff847 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Thu, 11 Jul 2024 10:57:10 +0200 Subject: [PATCH] chores: touch init in board (#5284) Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com> --- radio/src/opentx.cpp | 4 ---- radio/src/targets/horus/board.cpp | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index e303b00ad..66ce3b3d1 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -1341,10 +1341,6 @@ void edgeTxInit() if (!(startOptions & OPENTX_START_NO_SPLASH)) startSplash(); -#if defined(HARDWARE_TOUCH) && !defined(PCBFLYSKY) && !defined(SIMU) - touchPanelInit(); -#endif - #if defined(LIBOPENUI) initLvglTheme(); // create ViewMain diff --git a/radio/src/targets/horus/board.cpp b/radio/src/targets/horus/board.cpp index 18927589d..e9c82e919 100644 --- a/radio/src/targets/horus/board.cpp +++ b/radio/src/targets/horus/board.cpp @@ -146,6 +146,10 @@ void boardInit() switchInit(); rotaryEncoderInit(); +#if defined(HARDWARE_TOUCH) + touchPanelInit(); +#endif + #if defined(PWM_STICKS) sticksPwmDetect(); #endif