AP_Generator: Simplify boolean expression

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2021-02-03 11:04:38 -03:00 committed by Andrew Tridgell
parent a0172fd2ca
commit 9965cbb79a

View File

@ -83,7 +83,7 @@ void AP_Generator_IE_650_800::decode_latest_term()
case 4: case 4:
_parsed.err_code = strtoul(_term, nullptr, 16); _parsed.err_code = strtoul(_term, nullptr, 16);
// Sentence only declared valid when we have the expected number of terms // Sentence only declared valid when we have the expected number of terms
_sentence_valid = true && _data_valid; _sentence_valid = _data_valid;
break; break;
default: default: