Skip to content

fix: skip server version in device ID mapping deserialization#324

Merged
from2001 merged 2 commits intodevelopfrom
refactor/rest-bridge
Jan 29, 2026
Merged

fix: skip server version in device ID mapping deserialization#324
from2001 merged 2 commits intodevelopfrom
refactor/rest-bridge

Conversation

@from2001
Copy link
Collaborator

This pull request makes a small but important change to the device ID mapping deserialization logic. The function now correctly skips the 3-byte server version at the start of the message before parsing the mappings, ensuring proper alignment for subsequent data extraction.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes a critical bug in the device ID mapping deserialization logic. The function now correctly skips the 3-byte server version header (major, minor, patch) before parsing the mapping count and data, ensuring proper alignment with the serialization format defined in serialize_device_id_mapping.

Changes:

  • Added offset increment of 3 bytes in _deserialize_device_id_mapping to skip server version header

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@from2001 from2001 merged commit 6538764 into develop Jan 29, 2026
@from2001 from2001 deleted the refactor/rest-bridge branch January 29, 2026 01:04
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