From 4198c434b54174773d87b6102dd75f0594d92733 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sat, 21 Nov 2026 22:27:53 +0100 Subject: [PATCH] FrSkyA Lua: no table library (B&W radios) (#1218) EdgeTX has the Lua table library on color radios only: table.remove() in sendQueue() stopped the script on a TX12 MkII at its first run (shown as "syntax error"). The queue is shifted by hand. Co-authored-by: Raphael Coeffic <1050031+raphaelcoeffic@users.noreply.github.com> --- Lua_scripts/FrSky ACCESS.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Lua_scripts/FrSky ACCESS.lua b/Lua_scripts/FrSky ACCESS.lua index 26aace2a..e050bcd9 100644 --- a/Lua_scripts/FrSky ACCESS.lua +++ b/Lua_scripts/FrSky ACCESS.lua @@ -130,7 +130,11 @@ end local function sendQueue() if #queue == 0 or multiBuffer(TX_READY) ~= 0 then return end - local piece = table.remove(queue, 1) + local piece = queue[1] + for i = 1, #queue - 1 do -- no table library on B&W radios + queue[i] = queue[i + 1] + end + queue[#queue] = nil for i = 1, TX_MAX_PAYLOAD do multiBuffer(TX_PAYLOAD + i - 1, piece[i] or 0) end