Fix for issue #537

The function luaResume(...) assumes that it is called alternatingly in the background and the foreground.
But on color LCD radios it is only called in the foreground by standalone and tools script, so it got stuck waiting for a foreground call.
This commit is contained in:
jfrickmann
2021-08-03 20:57:16 -04:00
parent c88d848680
commit 8e4e2cceea
+3
View File
@@ -971,7 +971,10 @@ static bool resumeLua(bool init, bool allowLcdUsage)
}
else
#endif
if (lua_status(lsScripts) == LUA_YIELD)
return scriptWasRun;
else
luaLcdAllowed = allowLcdUsage;
}
do {