mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Generator: Simplify boolean expression
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
a0172fd2ca
commit
9965cbb79a
@ -83,7 +83,7 @@ void AP_Generator_IE_650_800::decode_latest_term()
|
||||
case 4:
|
||||
_parsed.err_code = strtoul(_term, nullptr, 16);
|
||||
// Sentence only declared valid when we have the expected number of terms
|
||||
_sentence_valid = true && _data_valid;
|
||||
_sentence_valid = _data_valid;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user