From 9965cbb79a28fe8dfa459332e1a2fbbc4099e738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Wed, 3 Feb 2021 11:04:38 -0300 Subject: [PATCH] AP_Generator: Simplify boolean expression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- libraries/AP_Generator/AP_Generator_IE_650_800.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Generator/AP_Generator_IE_650_800.cpp b/libraries/AP_Generator/AP_Generator_IE_650_800.cpp index 86b1bbd38b..b9319a2c6e 100644 --- a/libraries/AP_Generator/AP_Generator_IE_650_800.cpp +++ b/libraries/AP_Generator/AP_Generator_IE_650_800.cpp @@ -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: