Skip to content

Commit b31e8e8

Browse files
[color] Move touch panel init to UI task
This allows for the timeout checks in I2C code to work properly as they are based on SysTick IRQ, which is started by FreeRTOS when the scheduler is started. Resolves #803
1 parent 617b8e6 commit b31e8e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

radio/src/targets/horus/board.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,6 @@ void boardInit()
246246
DBGMCU_APB1PeriphConfig(DBGMCU_IWDG_STOP|DBGMCU_TIM1_STOP|DBGMCU_TIM2_STOP|DBGMCU_TIM3_STOP|DBGMCU_TIM4_STOP|DBGMCU_TIM5_STOP|DBGMCU_TIM6_STOP|DBGMCU_TIM7_STOP|DBGMCU_TIM8_STOP|DBGMCU_TIM9_STOP|DBGMCU_TIM10_STOP|DBGMCU_TIM11_STOP|DBGMCU_TIM12_STOP|DBGMCU_TIM13_STOP|DBGMCU_TIM14_STOP, ENABLE);
247247
#endif
248248

249-
#if defined(HARDWARE_TOUCH)
250-
touchPanelInit();
251-
#endif
252-
253249
ledInit();
254250

255251
#if defined(USB_CHARGER)

radio/src/tasks.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,10 @@ TASK_FUNCTION(menusTask)
224224
}
225225
#endif
226226

227+
#if defined(HARDWARE_TOUCH) && !defined(PCBFLYSKY) && !defined(SIMU)
228+
touchPanelInit();
229+
#endif
230+
227231
opentxInit();
228232

229233
#if defined(PWR_BUTTON_PRESS)

0 commit comments

Comments
 (0)