[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)
|
void opentxInit(OPENTX_INIT_ARGS)
|
||||||
{
|
{
|
||||||
#if defined(DEBUG) && defined(USB_SERIAL)
|
#if defined(DEBUG) && defined(USB_SERIAL)
|
||||||
CoTickDelay(5000); // 10s
|
// CoTickDelay(5000); // 10s
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TRACE("opentxInit()");
|
TRACE("opentxInit()");
|
||||||
|
|||||||
@@ -35,8 +35,6 @@ void ledInit()
|
|||||||
|
|
||||||
void ledOff()
|
void ledOff()
|
||||||
{
|
{
|
||||||
RCC_AHB1PeriphClockCmd(LED_RCC_AHB1Periph, ENABLE);
|
|
||||||
|
|
||||||
GPIO_InitTypeDef GPIO_InitStructure;
|
GPIO_InitTypeDef GPIO_InitStructure;
|
||||||
GPIO_InitStructure.GPIO_Pin = LED_GPIO_PIN;
|
GPIO_InitStructure.GPIO_Pin = LED_GPIO_PIN;
|
||||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||||
|
|||||||
@@ -159,6 +159,10 @@ void menusTask(void * pdata)
|
|||||||
|
|
||||||
BACKLIGHT_OFF();
|
BACKLIGHT_OFF();
|
||||||
|
|
||||||
|
#if defined(PCBHORUS)
|
||||||
|
ledOff();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(COLORLCD) || defined(PCBTARANIS)
|
#if defined(COLORLCD) || defined(PCBTARANIS)
|
||||||
drawSleepBitmap();
|
drawSleepBitmap();
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user