From f1bdb931b8ca49592921d7b9473190405f881a11 Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Sat, 18 Jun 2016 22:26:25 +0200 Subject: [PATCH] Fixes #3549: disable trim processing in while shutdown is in progress, do no turn of the back-light before the shutdown (#3612) (ported from master) --- radio/src/opentx.cpp | 5 +++++ radio/src/tasks_arm.cpp | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 8f55e813d..bc064b17e 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -1950,6 +1950,11 @@ void opentxStart() #if defined(CPUARM) || defined(CPUM2560) void opentxClose() { +#if defined(CPUARM) + watchdogSetTimeout(2000/*20s*/); +#endif + pausePulses(); // stop mixer task to disable trims processing while in shutdown + AUDIO_BYE(); #if defined(FRSKY) diff --git a/radio/src/tasks_arm.cpp b/radio/src/tasks_arm.cpp index 903cd3198..3cf289b7a 100644 --- a/radio/src/tasks_arm.cpp +++ b/radio/src/tasks_arm.cpp @@ -239,8 +239,6 @@ void menusTask(void * pdata) toplcdOff(); #endif - BACKLIGHT_OFF(); - #if defined(PCBHORUS) ledOff(); #endif