Fix shutdown with LUA widgets used
This commit is contained in:
committed by
Raphael Coeffic
parent
836733618c
commit
26bb790d89
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user