Skip to content

Commit

Permalink
Merge pull request #61 from iNavFlight/release_2.2.0
Browse files Browse the repository at this point in the history
Release 2.2.0
  • Loading branch information
stronnag authored Nov 27, 2022
2 parents 4d53093 + 8e8dfe7 commit 6a1939d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SCRIPTS/TELEMETRY/iNav.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- Docs: https://github.com/iNavFlight/OpenTX-Telemetry-Widget

local zone, options = ...
local VERSION = "2.1.1-rc4"
local VERSION = "2.2.0"
local FILE_PATH = "/SCRIPTS/TELEMETRY/iNav/"
local SMLCD = LCD_W < 212
local HORUS = LCD_W >= 480 or LCD_H >= 480
Expand Down Expand Up @@ -511,7 +511,8 @@ function inav.run(event)
loadScript(FILE_PATH .. "save" .. ext, env)(config, data, frmt, FILE_PATH)
end
else
-- User input
-- User input
-- if event ~= 0 then print("DBG: INPUT "..event) end
if not data.armed and (event == EVT_VIRTUAL_PREV or event == EVT_VIRTUAL_NEXT) then
-- Toggle showing max/min values
data.showMax = not data.showMax
Expand Down
2 changes: 2 additions & 0 deletions src/SCRIPTS/TELEMETRY/iNav/data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ elseif string.sub(r,0,5) == "tlite" then
MENU = EVT_VIRTUAL_MENU_LONG
elseif string.sub(r,0,5) == "zorro" then
MENU = EVT_VIRTUAL_MENU_LONG
elseif string.sub(r,0,6) == "lr3pro" then
MENU = EVT_VIRTUAL_MENU_LONG
else
MENU = EVT_MENU_BREAK
end
Expand Down

0 comments on commit 6a1939d

Please sign in to comment.