1
1
local apiVersionReceived = false
2
2
local mcuIdReceived = false
3
- local boardInfoReceived = false
4
3
local featuresReceived = false
5
- local getApiVersion , getMCUId , getBoardInfo , getFeaturesInfo
4
+ local getApiVersion , getMCUId , getFeaturesInfo
6
5
local returnTable = { f = nil , t = " " }
7
6
8
7
local function init ()
@@ -24,14 +23,6 @@ local function init()
24
23
getMCUId = nil
25
24
collectgarbage ()
26
25
end
27
- elseif not boardInfoReceived and apiVersion >= 1.44 then
28
- getBoardInfo = getBoardInfo or assert (loadScript (" board_info.lua" ))()
29
- returnTable .t = getBoardInfo .t
30
- boardInfoReceived = getBoardInfo .f ()
31
- if boardInfoReceived then
32
- getBoardInfo = nil
33
- collectgarbage ()
34
- end
35
26
elseif not featuresReceived and apiVersion >= 1.41 then
36
27
getFeaturesInfo = getFeaturesInfo or assert (loadScript (" features_info.lua" ))()
37
28
returnTable .t = getFeaturesInfo .t
@@ -43,7 +34,7 @@ local function init()
43
34
else
44
35
return true
45
36
end
46
- return apiVersionReceived and vtxTablesReceived and mcuId and boardInfoReceived and featuresReceived
37
+ return apiVersionReceived and mcuId and featuresReceived
47
38
end
48
39
49
40
returnTable .f = init
0 commit comments