We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d74fa4c + 6d853d2 commit fa49ce0Copy full SHA for fa49ce0
src/SCRIPTS/BF/background.lua
@@ -9,7 +9,10 @@ local mspMsgQueued = false
9
10
local function getSensorValue()
11
if sensorId == -1 then
12
- sensorId = getFieldInfo(protocol.stateSensor)['id'] or -1
+ local sensor = getFieldInfo(protocol.stateSensor)
13
+ if type(sensor) == "table" then
14
+ sensorId = sensor['id'] or -1
15
+ end
16
end
17
return getValue(sensorId)
18
src/SCRIPTS/BF/radios.lua
@@ -28,6 +28,7 @@ local supportedPlatforms = {
28
local supportedRadios =
29
{
30
["x7"] = supportedPlatforms.x7,
31
+ ["x7s"] = supportedPlatforms.x7,
32
["x9d"] = supportedPlatforms.x9,
33
["x9d+"] = supportedPlatforms.x9,
34
["x9e"] = supportedPlatforms.x9,
0 commit comments