Skip to content

Commit a9f8286

Browse files
committed
Show lua version in loading... message
1 parent 6871af5 commit a9f8286

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lua/elrsV3.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
local EXITVER = "-- EXIT (Lua r16) --"
1010
local deviceId = 0xEE
1111
local handsetId = 0xEF
12-
local deviceName = "Loading..."
12+
local deviceName = nil
1313
local lineIndex = 1
1414
local pageOffset = 0
1515
local edit = nil
@@ -932,6 +932,8 @@ local function init()
932932
setMock()
933933
setLCDvar = nil
934934
setMock = nil
935+
-- Extract the "Lua rXXX" from the parens
936+
deviceName = string.match(EXITVER, "%((.*)%)") .. " loading..."
935937
end
936938

937939
-- Main

0 commit comments

Comments
 (0)