Skip to content

Commit

Permalink
explicitly separate log loaders for ETX and OTX
Browse files Browse the repository at this point in the history
  • Loading branch information
stronnag committed May 18, 2022
1 parent 49b2b92 commit d70ffa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SCRIPTS/TELEMETRY/iNav.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ collectgarbage()

data.etx = osname ~= nil and osname == "EdgeTX"

loadScript(FILE_PATH .. (data.etx and "load_e" or "load") .. ext, env)(config, data, FILE_PATH)
loadScript(FILE_PATH .. "load_" .. (data.etx and "e" or "o") .. ext, env)(config, data, FILE_PATH)
collectgarbage()

--[[ Simulator language testing
Expand Down Expand Up @@ -410,7 +410,7 @@ function inav.background()
-- Initialize variables on flight reset (uses timer3)
tmp = model.getTimer(2)
if tmp.value == 0 then
loadScript(FILE_PATH .. (data.etx and "load_e" or "load") .. ext, env)(config, data, FILE_PATH)
loadScript(FILE_PATH .. "load_" .. (data.etx and "e" or "o") .. ext, env)(config, data, FILE_PATH)
loadScript(FILE_PATH .. "reset" .. ext, env)(data)
tmp.value = 3600
model.setTimer(2, tmp)
Expand Down
File renamed without changes.

0 comments on commit d70ffa1

Please sign in to comment.