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.
1 parent 7329ce4 commit 36c4438Copy full SHA for 36c4438
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