fix(lua): radio tries to run 'nil' script if SF disabled (#5457)

This commit is contained in:
philmoz
2024-08-19 09:01:33 +10:00
committed by GitHub
parent 9fbe1f25d5
commit 06db4c7989
+1 -1
View File
@@ -1132,7 +1132,7 @@ static bool resumeLua(bool init, bool allowLcdUsage)
if (sid.background == LUA_NOREF) continue; if (sid.background == LUA_NOREF) continue;
lua_rawgeti(lsScripts, LUA_REGISTRYINDEX, sid.background); lua_rawgeti(lsScripts, LUA_REGISTRYINDEX, sid.background);
} }
} } else continue;
} }
#if defined(PCBTARANIS) #if defined(PCBTARANIS)
else if (ref <= SCRIPT_TELEMETRY_LAST) { else if (ref <= SCRIPT_TELEMETRY_LAST) {