mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
[Horus] LED off when drawing the SLEEP bitmap on shutdown
This commit is contained in:
parent
22a8a5cc80
commit
63713578fe
3 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue