Skip to content

Fix MHeard Connect lookup for SSID-0 callsigns - #2

Open
georges wants to merge 1 commit into
radiocatalog:masterfrom
islandmagic:mheard-base-callsign
Open

Fix MHeard Connect lookup for SSID-0 callsigns#2
georges wants to merge 1 commit into
radiocatalog:masterfrom
islandmagic:mheard-base-callsign

Conversation

@georges

@georges georges commented Aug 21, 2026

Copy link
Copy Markdown

Summary

  • Bare Connect <call> (e.g. c wh6az) failed with "<call> not found" even when the station appeared in jheard, because find_mheard() appended -0 while libax25 ax25_ntoa() intentionally omits SSID 0.
  • That mismatch meant strcasecmp("WH6AZ-0", "WH6AZ") never matched; non-zero SSIDs (e.g. KH6NS-4) still worked.
  • Normalize lookup to match ax25_ntoa(): do not force-append -0, and treat an explicit terminal CALL-0 as CALL. Digipeater reverse-path reconstruction is unchanged.

Test plan

  • jheard shows a base callsign (SSID 0), then c CALL resolves without needing c <port> CALL
  • c CALL-0 also matches the same mheard entry
  • c CALL-1 matches only CALL-1, not bare CALL
  • c CALL-N (non-zero SSID) still matches as before
  • jheard display behavior unchanged

Made with Cursor

ax25_ntoa omits SSID 0, so appending -0 to bare calls prevented matches
against mheard entries that jheard already showed correctly.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant