Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Packet.Encode to Packet.EncodeTnc2 #149

Merged
merged 1 commit into from
Jul 10, 2023
Merged

Rename Packet.Encode to Packet.EncodeTnc2 #149

merged 1 commit into from
Jul 10, 2023

Conversation

CBielstein
Copy link
Owner

Description

Renames string Packet.Encode() to explicit string Packet.EncodeTnc2() to make way for upcoming AX.25 byte encoding work. AX.25 requires encode to bytes, but TNC2 can encode to string without losing data. Separating the implementations now allows their logic to evolve separately as we go forward.

This is the first PR for #145

Changes

  • Rename Packet.Encode to Packet.EncodeTnc2
  • Update references in tests

Validation

  • Linting and tests pass

@CBielstein CBielstein added the code cleanliness Refactors, static analysis, etc. label Jul 10, 2023
@CBielstein CBielstein self-assigned this Jul 10, 2023
@CBielstein CBielstein merged commit adfc372 into main Jul 10, 2023
3 checks passed
@CBielstein CBielstein deleted the encode-tnc2 branch July 10, 2023 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanliness Refactors, static analysis, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant