From e017510df8aeaed4adf1c0ec07d2670bf7cb4aa1 Mon Sep 17 00:00:00 2001 From: Jonathan Hudson Date: Fri, 29 Mar 2024 14:35:46 +0000 Subject: [PATCH] support INAV8 alternate frskyIDs --- src/SCRIPTS/TELEMETRY/iNav/data.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SCRIPTS/TELEMETRY/iNav/data.lua b/src/SCRIPTS/TELEMETRY/iNav/data.lua index 0742bb2..634106a 100644 --- a/src/SCRIPTS/TELEMETRY/iNav/data.lua +++ b/src/SCRIPTS/TELEMETRY/iNav/data.lua @@ -25,9 +25,9 @@ local data = { txBattMax = general.battMax, lang = string.lower(general.language), voice = general.voice, - mode_id = getTelemetryId("Tmp1"), + mode_id = getTelemetryId("Tmp1") > -1 and getTelemetryId("Tmp1") or getTelemetryId("0470"), rxBatt_id = getTelemetryId("RxBt") > -1 and getTelemetryId("RxBt") or getTelemetryId("BtRx"), - sat_id = getTelemetryId("Tmp2"), + sat_id = getTelemetryId("Tmp2") > -1 and getTelemetryId("Tmp2") or getTelemetryId("0480"), gpsAlt_id = getTelemetryId("GAlt"), gpsLatLon_id = getTelemetryId("GPS"), hdg_id = getTelemetryId("Hdg"),