Skip to content

Commit

Permalink
SPEC: Bootloader version string is not null terminated
Browse files Browse the repository at this point in the history
This was causing construct's Cstring parser to fail (as it should have). This fix is to just treat it as a byte array.

Fixes swift-nav#113
  • Loading branch information
fnoble committed Apr 15, 2015
1 parent 4a71160 commit 3eb0b72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/yaml/swiftnav/sbp/bootload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ definitions:
earlier versions.
fields:
- handshake:
type: string
desc: Version number (NULL terminated)
type: array
fill: u8
desc: Version number string (not NULL terminated)

- MSG_BOOTLOADER_JUMP_TO_APP:
id: 0x00B1
Expand Down

0 comments on commit 3eb0b72

Please sign in to comment.