From 26bb790d8929d9ae3af96d3f8a123f3fc074c606 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sat, 29 May 2021 10:17:26 +0200 Subject: [PATCH] Fix shutdown with LUA widgets used --- radio/src/opentx.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 364693f5b..6b735cb0a 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -1478,9 +1478,6 @@ void opentxClose(uint8_t shutdown) // TODO needed? telemetryEnd(); #if defined(LUA) luaClose(&lsScripts); -#if defined(COLORLCD) - luaClose(&lsWidgets); -#endif #endif #if defined(HAPTIC) hapticOff(); @@ -1520,6 +1517,7 @@ void opentxClose(uint8_t shutdown) //TODO: In fact we want only to empty the trash (private method) MainWindow::instance()->run(); + luaClose(&lsWidgets); #endif #if defined(SDCARD)