mirror of
https://github.com/opentx/opentx.git
synced 2025-07-18 05:45:21 +03:00
2.1.x implementation of displayLuaScriptError()
This commit is contained in:
parent
436b5003d9
commit
e57361f7e1
3 changed files with 55 additions and 1 deletions
|
@ -1784,6 +1784,17 @@ bool luaLoadTelemetryScript(uint8_t index)
|
|||
return true;
|
||||
}
|
||||
|
||||
uint8_t isTelemetryScriptAvailable(uint8_t index)
|
||||
{
|
||||
for (int i=0; i<luaScriptsCount; i++) {
|
||||
ScriptInternalData & sid = scriptInternalData[i];
|
||||
if (sid.reference == SCRIPT_TELEMETRY_FIRST+index) {
|
||||
return sid.state;
|
||||
}
|
||||
}
|
||||
return SCRIPT_NOFILE;
|
||||
}
|
||||
|
||||
void luaLoadPermanentScripts()
|
||||
{
|
||||
luaScriptsCount = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue