Lua task preempts long running scripts instead of killing them

Ported to EdgeTX from https://github.com/opentx/opentx/pull/8194
This commit is contained in:
jfrickmann
2021-07-22 14:41:53 -04:00
parent d3c16a89c4
commit c62aac7bde
9 changed files with 640 additions and 507 deletions
@@ -157,9 +157,6 @@ void menuModelCustomScripts(event_t event)
case SCRIPT_SYNTAX_ERROR:
lcdDrawText(30*FW+2, y, "(error)");
break;
case SCRIPT_KILLED:
lcdDrawText(29*FW+2, y, "(killed)");
break;
default:
lcdDrawNumber(34*FW, y, luaGetCpuUsed(scriptIndex), RIGHT);
lcdDrawChar(34*FW, y, '%');