We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7329ce4 + 36c4438 commit acb0239Copy full SHA for acb0239
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
0 commit comments