[Horus] LED off when drawing the SLEEP bitmap on shutdown
This commit is contained in:
@@ -2473,7 +2473,7 @@ uint16_t stackAvailable()
|
||||
void opentxInit(OPENTX_INIT_ARGS)
|
||||
{
|
||||
#if defined(DEBUG) && defined(USB_SERIAL)
|
||||
CoTickDelay(5000); // 10s
|
||||
// CoTickDelay(5000); // 10s
|
||||
#endif
|
||||
|
||||
TRACE("opentxInit()");
|
||||
|
||||
@@ -35,8 +35,6 @@ void ledInit()
|
||||
|
||||
void ledOff()
|
||||
{
|
||||
RCC_AHB1PeriphClockCmd(LED_RCC_AHB1Periph, ENABLE);
|
||||
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
GPIO_InitStructure.GPIO_Pin = LED_GPIO_PIN;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||
|
||||
@@ -159,6 +159,10 @@ void menusTask(void * pdata)
|
||||
|
||||
BACKLIGHT_OFF();
|
||||
|
||||
#if defined(PCBHORUS)
|
||||
ledOff();
|
||||
#endif
|
||||
|
||||
#if defined(COLORLCD) || defined(PCBTARANIS)
|
||||
drawSleepBitmap();
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user