feat(lua): Port of NodeMCU Lua53 read-only tables (#2994)
* chore(lua): revert useless c light function change This change was part of the eLua LTR patches (based on 5.1), whereby this feature was already integrated in Lua 5.2. * feat(lua): port of NodeMCU Lua53 read-only tables # Conflicts: # radio/src/lua/CMakeLists.txt # radio/src/lua/api_general.cpp * fix(nv14): missing SDRAM definition * fix: l_mathop * fix: use float functions in drawPower() * fix: ltable resize * fix: correct name is "bit32" * fix: first Lua context must be closed last As the lookup cache is attached to that one * Revert to Lua using double * Ensure byte-code compatibility * Fix possible compatibility issue with `lua_typename`/`luaL_typename` * Fix Bitmap symbol table * Re-add table lib for COLORLCD
This commit is contained in:
@@ -1189,11 +1189,7 @@ void opentxClose(uint8_t shutdown)
|
||||
if (shutdown) {
|
||||
pulsesStop();
|
||||
AUDIO_BYE();
|
||||
|
||||
#if defined(LUA)
|
||||
luaClose(&lsScripts);
|
||||
#endif
|
||||
|
||||
// TODO needed? telemetryEnd();
|
||||
#if defined(HAPTIC)
|
||||
hapticOff();
|
||||
#endif
|
||||
@@ -1237,6 +1233,11 @@ void opentxClose(uint8_t shutdown)
|
||||
lsWidgets = 0;
|
||||
#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)
|
||||
sdDone();
|
||||
|
||||
Reference in New Issue
Block a user