Skip to content

feat(companion): implement multi-byte path hash encoding and management#2

Merged
agessaman merged 1 commit intodev-companion-v2from
dev-companion-v2-multibyte-paths
Mar 6, 2026
Merged

feat(companion): implement multi-byte path hash encoding and management#2
agessaman merged 1 commit intodev-companion-v2from
dev-companion-v2-multibyte-paths

Conversation

@agessaman
Copy link
Copy Markdown
Owner

  • Introduced support for multi-byte path lengths in CompanionBase, allowing for 1-byte, 2-byte, and 3-byte hash sizes.
  • Added methods to set and apply path hash mode, ensuring proper encoding in originated packets.
  • Updated constants and packet handling to accommodate new path length encoding, enhancing compatibility with firmware.
  • Enhanced tests to validate the new path hash functionality and ensure correct behavior across various scenarios.

- Introduced support for multi-byte path lengths in CompanionBase, allowing for 1-byte, 2-byte, and 3-byte hash sizes.
- Added methods to set and apply path hash mode, ensuring proper encoding in originated packets.
- Updated constants and packet handling to accommodate new path length encoding, enhancing compatibility with firmware.
- Enhanced tests to validate the new path hash functionality and ensure correct behavior across various scenarios.
@agessaman agessaman merged commit a851967 into dev-companion-v2 Mar 6, 2026
@agessaman agessaman deleted the dev-companion-v2-multibyte-paths branch March 6, 2026 00:28
agessaman added a commit that referenced this pull request Mar 28, 2026
…med - TODO #1 and #2

- Introduced `_pending_ack_crcs` to track pending ACK CRCs in `CompanionBase`, enhancing the handling of confirmed sends.
- Refactored `_track_pending_ack` and `_apply_ack` methods to utilize the new `_try_confirm_send` method for improved clarity and functionality.
- Updated `CompanionRadio` to clear pending ACKs upon key import and added an ACK received listener to the dispatcher for better integration.
- Enhanced the dispatcher to support asynchronous ACK handling, ensuring efficient processing of received ACKs.
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