fix(color): fix EM crashes when shutting down Lua states (#6337)
This commit is contained in:
@@ -1119,6 +1119,8 @@ void edgeTxResume()
|
||||
TRACE("edgeTxResume");
|
||||
|
||||
if (!sdMounted()) sdInit();
|
||||
|
||||
luaInitMainState();
|
||||
#if defined(COLORLCD) && defined(LUA)
|
||||
// reload widgets
|
||||
luaInitThemesAndWidgets();
|
||||
@@ -1441,6 +1443,7 @@ void edgeTxInit()
|
||||
logsInit();
|
||||
}
|
||||
|
||||
luaInitMainState();
|
||||
#if defined(COLORLCD) && defined(LUA)
|
||||
if (!UNEXPECTED_SHUTDOWN()) {
|
||||
// lua widget state must be prepared before the call to storageReadAll()
|
||||
|
||||
Reference in New Issue
Block a user