diff --git a/radio/src/gui/212x64/view_statistics.cpp b/radio/src/gui/212x64/view_statistics.cpp index dad89e08e..fbc638028 100644 --- a/radio/src/gui/212x64/view_statistics.cpp +++ b/radio/src/gui/212x64/view_statistics.cpp @@ -220,7 +220,7 @@ void menuStatisticsDebug(event_t event) y += FH; #endif - lcdDrawText(LCD_W/2, 7*F&H+1, STR_MENUTORESET, CENTERED); + lcdDrawText(LCD_W/2, 7*FH+1, STR_MENUTORESET, CENTERED); lcdInvertLastLine(); } diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index d205269d8..765cc3b03 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -92,10 +92,18 @@ void watchdogSuspend(uint32_t timeout) void toggleLatencySwitch() { latencyToggleSwitch ^= 1; + +#if defined(PCBHORUS) + if (latencyToggleSwitch) + GPIO_ResetBits(EXTMODULE_TX_GPIO, EXTMODULE_TX_GPIO_PIN); + else + GPIO_SetBits(EXTMODULE_TX_GPIO, EXTMODULE_TX_GPIO_PIN); +#else if (latencyToggleSwitch) sportUpdatePowerOn(); else sportUpdatePowerOff(); +#endif } #endif diff --git a/radio/src/targets/horus/extmodule_driver.cpp b/radio/src/targets/horus/extmodule_driver.cpp index 7dd31c417..f7cd5b92b 100644 --- a/radio/src/targets/horus/extmodule_driver.cpp +++ b/radio/src/targets/horus/extmodule_driver.cpp @@ -30,6 +30,14 @@ void extmoduleStop() EXTMODULE_DMA_STREAM->CR &= ~DMA_SxCR_EN; // Disable DMA EXTMODULE_TIMER->DIER &= ~(TIM_DIER_CC2IE | TIM_DIER_UDE); EXTMODULE_TIMER->CR1 &= ~TIM_CR1_CEN; + + GPIO_InitTypeDef GPIO_InitStructure; + GPIO_InitStructure.GPIO_Pin = EXTMODULE_TX_GPIO_PIN; + GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; + GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz; + GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; + GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL; + GPIO_Init(EXTMODULE_TX_GPIO, &GPIO_InitStructure); } void extmodulePpmStart()