Skip to content

Commit f1f264f

Browse files
committed
Updates after testing with CRSF
1 parent 56e2c97 commit f1f264f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/SCRIPTS/TELEMETRY/iNav.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ function inav.background()
210210
data.headFree = false
211211
data.headingHold = false
212212
data.altHold = false
213-
local modeA = data.mode * 0.000001
214-
local modeB = data.mode * 0.00001
215-
local modeC = data.mode * 0.0001
213+
local modeA = data.mode * 0.000001 % 10
214+
local modeB = data.mode * 0.00001 % 10
215+
local modeC = data.mode * 0.0001 % 10
216216
local modeD = data.mode * 0.001 % 10
217217
local modeE = data.mode * 0.01 % 10
218218
local modeF = data.mode * 0.1 % 10

src/SCRIPTS/TELEMETRY/iNav/crsf.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ local function crsf(data)
121121
elseif data.fm == "TURT" then
122122
data.mode = 200005
123123
elseif data.fm == "WRTH" then
124-
data.mode = 10000215
124+
data.mode = 1000215
125125
elseif data.fm == "LOTR" then
126126
data.mode = 800215
127127
elseif data.fm == "ANGH" then

0 commit comments

Comments
 (0)