fix: EM when LUA script is running and radio is turned off (#3926)
* fix: EM when LUA script is running and radio is turned off * Improve sequencing
This commit is contained in:
@@ -1171,6 +1171,10 @@ void opentxClose(uint8_t shutdown)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(LUA)
|
||||||
|
luaClose(&lsScripts);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(SDCARD)
|
#if defined(SDCARD)
|
||||||
logsClose();
|
logsClose();
|
||||||
#endif
|
#endif
|
||||||
@@ -1209,11 +1213,6 @@ void opentxClose(uint8_t shutdown)
|
|||||||
lsWidgets = 0;
|
lsWidgets = 0;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if defined(LUA)
|
|
||||||
// the script context needs to be closed *after*
|
|
||||||
// the widgets, as it has been the first to be opened
|
|
||||||
luaClose(&lsScripts);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(SDCARD)
|
#if defined(SDCARD)
|
||||||
sdDone();
|
sdDone();
|
||||||
|
|||||||
Reference in New Issue
Block a user