File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/SCRIPTS/TELEMETRY/iNav Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,18 @@ config[22].v = 0
20
20
config [23 ].x = 1
21
21
22
22
local function crsf (data )
23
- if getValue (data .rssi_id ) == 0 or getValue (data .rssi_id ) == nil then
23
+ local vtest
24
+ vtest = getValue (data .rssi_id )
25
+ if vtest == nil or vtest == 0 then
24
26
--[[ Also check for RSSI2, in case RSSI2 is active with RSSI1 being inactive
25
27
(Sometimes happens with True Diversity ELRS receivers on startup) ]]
26
28
local rssi2 = getTelemetryId (" 2RSS" )
27
- if getValue (rssi2 ) == 0 or getValue (rssi2 ) == nil then
28
- if getValue (data .tpwr_id ) == 0 then
29
+ vtest = getValue (rssi2 )
30
+ if vtest == nil or vtest == 0 then
31
+ vtest = getValue (data .tpwr_id )
32
+ if vtest == nil or vtest == 0 then
29
33
data .rssi = 0
34
+ data .tpwr = 0
30
35
data .telem = false
31
36
return 0
32
37
end
You can’t perform that action at this time.
0 commit comments