From db41b16ce98f9d45cc343f572925d0719f3dd956 Mon Sep 17 00:00:00 2001 From: Darren Lines <darren@darrenlines.uk> Date: Sat, 19 Jun 2021 19:07:11 +0100 Subject: [PATCH] Update crsf.lua This will update the script to work with the changes here https://github.com/iNavFlight/inav/pull/7108 The old mode names are also present to maintain backwards compatibility with earlier versions of iNav. --- src/iNav/crsf.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/iNav/crsf.lua b/src/iNav/crsf.lua index 3a92c31c..1b920b21 100644 --- a/src/iNav/crsf.lua +++ b/src/iNav/crsf.lua @@ -92,8 +92,12 @@ local function crsf(data) data.mode = 415 elseif data.fm == "CRS" then data.mode = 8015 + elseif data.fm == "CRSH" then + data.mode = 8015 elseif data.fm == "3CRS" then data.mode = 8215 + elseif data.fm == "CRUZ" then + data.mode = 8215 elseif data.fm == "WP" then data.mode = 2015 elseif data.fm == "RTH" then