Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/SCRIPTS/BF/protocols.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local supportedProtocols =
{
smartPort =
{
name = "SmartPort",
transport = SCRIPT_HOME.."/MSP/sp.lua",
rssi = function() return getValue("RSSI") end,
exitFunc = function() return 0 end,
Expand All @@ -13,6 +14,7 @@ local supportedProtocols =
},
crsf =
{
name = "Crossfire",
transport = SCRIPT_HOME.."/MSP/crsf.lua",
rssi = function() return getValue("TQly") end,
exitFunc = function() return "/CROSSFIRE/crossfire.lua" end,
Expand Down
7 changes: 5 additions & 2 deletions src/SCRIPTS/TELEMETRY/bf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ function run_bg()
end
end

--return { init=background.init, run=run, background=run_bg }
return { run=run_ui }
if protocol.name == "SmartPort" then
return { init=background.init, run=run, background=run_bg }
else
return { run=run_ui }
end