[hamradio-commits] [dump1090] 325/389: Check if bit correction happened before bailing out due to a bad CRC.
Matthew Ernisse
mernisse-guest at moszumanska.debian.org
Wed Nov 5 00:20:11 UTC 2014
This is an automated email from the git hooks/post-receive script.
mernisse-guest pushed a commit to branch master
in repository dump1090.
commit 7fab5b0cb55276760f9ac73a2281ad30fa5b5f38
Author: Oliver Jowett <oliver at mutability.co.uk>
Date: Sat Sep 13 12:11:19 2014 +0100
Check if bit correction happened before bailing out due to a bad CRC.
---
mode_s.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mode_s.c b/mode_s.c
index 34ddec1..2a746d0 100644
--- a/mode_s.c
+++ b/mode_s.c
@@ -909,7 +909,7 @@ void decodeModesMessage(struct modesMessage *mm, unsigned char *msg) {
// If we're checking CRC and the CRC is invalid, then we can't trust any
// of the data contents, so save time and give up now.
- if ((Modes.check_crc) && (!mm->crcok)) { return;}
+ if ((Modes.check_crc) && (!mm->crcok) && (!mm->correctedbits)) { return;}
// Fields for DF0, DF16
if (mm->msgtype == 0 || mm->msgtype == 16) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git
More information about the pkg-hamradio-commits
mailing list