Skip to content

comm_b: drop dead UM check in decodeCommB - #155

Merged
wiedehopf merged 1 commit into
wiedehopf:devfrom
joliverosh:comm_b-drop-dead-um-check
Sep 23, 2026
Merged

wiedehopf merged 1 commit into
wiedehopf:devfrom
joliverosh:comm_b-drop-dead-um-check

Conversation

@joliverosh

Copy link
Copy Markdown
Contributor

decodeCommB rejects the message if mm->DR != 0 || mm->UM != 0, but decodeModesMessage calls decodeCommB (MB field) before it decodes UM, and the message struct is zeroed beforehand, so mm->UM is always 0 at that point and the UM condition has never had any effect. Remove it and say so in the comment; DR is decoded earlier and keeps working.

No behaviour change. Measured on a live feed at SKCL (30 min, 5513 DF20/21): UM != 0 in 4 replies (0.1 %), none of them a plausible BDS 5,0/6,0; DR != 0 in 1.0 %. Making the UM check effective instead would start rejecting Comm-B replies carrying a multisite interrogator identifier (IIS), which some SSR networks use, so I did not do that.

decodeCommB rejects the message if mm->DR != 0 || mm->UM != 0, but
decodeModesMessage calls decodeCommB (MB field) before it decodes UM,
and the message struct is zeroed beforehand, so mm->UM is always 0 at
that point and the UM condition has never had any effect. Remove it
and say so in the comment; DR is decoded earlier and keeps working.

No behaviour change. Measured on a live feed at SKCL (30 min, 5513
DF20/21): UM != 0 in 4 replies (0.1 %), none of them a plausible
BDS 5,0/6,0; DR != 0 in 1.0 %. Making the UM check effective instead
would start rejecting Comm-B replies carrying a multisite interrogator
identifier (IIS), which some SSR networks use, so I did not do that.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011BqHQDHRKNRuJHR4oQB55L
@wiedehopf
wiedehopf merged commit 6ffcf2b into wiedehopf:dev Sep 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants