AP_Generator: IE_2400: update low and critial error ranges for V2 protocol

This commit is contained in:
Iampete1 2023-10-22 17:55:53 +01:00 committed by Andrew Tridgell
parent 1355c60daf
commit 3b3c94ea07
1 changed files with 2 additions and 2 deletions

View File

@ -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