From 3b3c94ea07f7c2d53b70dac35d7549c6c911d491 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sun, 22 Oct 2023 17:55:53 +0100 Subject: [PATCH] AP_Generator: IE_2400: update low and critial error ranges for V2 protocol --- libraries/AP_Generator/AP_Generator_IE_2400.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Generator/AP_Generator_IE_2400.cpp b/libraries/AP_Generator/AP_Generator_IE_2400.cpp index 16a57b7932..84d6a497bf 100644 --- a/libraries/AP_Generator/AP_Generator_IE_2400.cpp +++ b/libraries/AP_Generator/AP_Generator_IE_2400.cpp @@ -361,7 +361,7 @@ bool AP_Generator_IE_2400::is_critical_error(const uint32_t err_in) const { // V2 protocol if (_version == ProtocolVersion::V2) { - return err_in > 30; + return err_in >= 30; } // V1 protocol @@ -383,7 +383,7 @@ bool AP_Generator_IE_2400::is_low_error(const uint32_t err_in) const { // V2 protocol if (_version == ProtocolVersion::V2) { - return (err_in >= 10) && (err_in <= 30); + return (err_in > 20) && (err_in < 30); } // V1 protocol