Skip to content

Commit

Permalink
Merge branch 'master' into build_script_parse_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeller authored Nov 21, 2017
2 parents d74fa4c + 6d853d2 commit fa49ce0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SCRIPTS/BF/background.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ local mspMsgQueued = false

local function getSensorValue()
if sensorId == -1 then
sensorId = getFieldInfo(protocol.stateSensor)['id'] or -1
local sensor = getFieldInfo(protocol.stateSensor)
if type(sensor) == "table" then
sensorId = sensor['id'] or -1
end
end
return getValue(sensorId)
end
Expand Down
1 change: 1 addition & 0 deletions src/SCRIPTS/BF/radios.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ local supportedPlatforms = {
local supportedRadios =
{
["x7"] = supportedPlatforms.x7,
["x7s"] = supportedPlatforms.x7,
["x9d"] = supportedPlatforms.x9,
["x9d+"] = supportedPlatforms.x9,
["x9e"] = supportedPlatforms.x9,
Expand Down

0 comments on commit fa49ce0

Please sign in to comment.