Skip to content

Commit fa49ce0

Browse files
authored
Merge branch 'master' into build_script_parse_fix
2 parents d74fa4c + 6d853d2 commit fa49ce0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/SCRIPTS/BF/background.lua

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ local mspMsgQueued = false
99

1010
local function getSensorValue()
1111
if sensorId == -1 then
12-
sensorId = getFieldInfo(protocol.stateSensor)['id'] or -1
12+
local sensor = getFieldInfo(protocol.stateSensor)
13+
if type(sensor) == "table" then
14+
sensorId = sensor['id'] or -1
15+
end
1316
end
1417
return getValue(sensorId)
1518
end

src/SCRIPTS/BF/radios.lua

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ local supportedPlatforms = {
2828
local supportedRadios =
2929
{
3030
["x7"] = supportedPlatforms.x7,
31+
["x7s"] = supportedPlatforms.x7,
3132
["x9d"] = supportedPlatforms.x9,
3233
["x9d+"] = supportedPlatforms.x9,
3334
["x9e"] = supportedPlatforms.x9,

0 commit comments

Comments
 (0)