1
0
Fork 0
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:
Bertrand Songis 2016-02-21 15:16:52 +01:00
parent 22a8a5cc80
commit 63713578fe
3 changed files with 5 additions and 3 deletions

View file

@ -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()");

View file

@ -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;

View file

@ -159,6 +159,10 @@ void menusTask(void * pdata)
BACKLIGHT_OFF();
#if defined(PCBHORUS)
ledOff();
#endif
#if defined(COLORLCD) || defined(PCBTARANIS)
drawSleepBitmap();
#else