Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions comm_b.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ static CommBDecoderFn comm_b_decoders[] = {
void decodeCommB(struct modesMessage *mm) {
mm->commb_format = COMMB_UNKNOWN;

// If DR or UM are set, this message is _probably_ noise
// If DR is set, this message is _probably_ noise
// as nothing really seems to use the multisite broadcast stuff?
// Also skip anything that had errors corrected
if (mm->DR != 0 || mm->UM != 0 || mm->correctedbits > 0) {
// Also skip anything that had errors corrected.
// UM is not checked: decodeModesMessage decodes UM after calling
// decodeCommB, so mm->UM is always 0 here and the check never acted.
if (mm->DR != 0 || mm->correctedbits > 0) {
return;
}

Expand Down
Loading