Fix MHeard Connect lookup for SSID-0 callsigns - #2
Open
georges wants to merge 1 commit into
Open
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Connect <call>(e.g.c wh6az) failed with"<call> not found"even when the station appeared injheard, becausefind_mheard()appended-0while libax25ax25_ntoa()intentionally omits SSID 0.strcasecmp("WH6AZ-0", "WH6AZ")never matched; non-zero SSIDs (e.g.KH6NS-4) still worked.ax25_ntoa(): do not force-append-0, and treat an explicit terminalCALL-0asCALL. Digipeater reverse-path reconstruction is unchanged.Test plan
jheardshows a base callsign (SSID 0), thenc CALLresolves without needingc <port> CALLc CALL-0also matches the same mheard entryc CALL-1matches onlyCALL-1, not bareCALLc CALL-N(non-zero SSID) still matches as beforejhearddisplay behavior unchangedMade with Cursor