Conversation
…as stripped) build_device_header() was slicing bytes [0:16] + [20:48], dropping the 4-byte prevAppVersion field and sending a 44-byte payload. The bootloader firmware-header struct includes prevAppVersion at offset 0x10, so it waited for 48 bytes and stalled. Fix: return raw[0:HEADER_SIZE] unchanged. DEVICE_HEADER_SIZE constant updated from 44 to HEADER_SIZE (48). Updated tests: replaced test_strips_prev_app_version_field with test_wire_header_is_full_48_byte_file_header and added test_prev_app_version_present_at_offset_16. Docs updated across FIRMWARE_FORMAT.md, PROTOCOL.md, ARCHITECTURE.md, USER_GUIDE.md, and firmware.py docstrings to reflect the 48-byte wire header. CHANGELOG.md notes that v1.2.0 requires the not-yet-released bootloader.
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.
changes implemented after secure bootloader updated with some fixes