Skip to content

Fix MSP_GPSSTATISTICS hwVersion documentation: uint32_t -> uint8_t#11513

Merged
sensei-hacker merged 1 commit intoiNavFlight:maintenance-10.xfrom
sensei-hacker:fix/msp-gpsstatistics-hwversion-type
Apr 25, 2026
Merged

Fix MSP_GPSSTATISTICS hwVersion documentation: uint32_t -> uint8_t#11513
sensei-hacker merged 1 commit intoiNavFlight:maintenance-10.xfrom
sensei-hacker:fix/msp-gpsstatistics-hwversion-type

Conversation

@sensei-hacker
Copy link
Copy Markdown
Member

Summary

Fixes the hwVersion field type in MSP_GPSSTATISTICS (code 166) in msp_messages.json.

The merged firmware sends hwVersion as sbufWriteU8 (1 byte, bit-field encoding), but the documentation still had the old uint32_t (4 bytes) description from before PR #11510.

Corrected entry:

  • Type: uint8_t (was uint32_t)
  • Description: bit-field encoding — bits[7:6]=series (0b01=u-blox Neo/M), bits[5:0]=generation. E.g. 0x48=M8, 0x49=M9, 0x4A=M10, 0=unknown.

This commit was pushed to the merge branch after PR #11512 was already merged.

Merged firmware (from 9.x fix-gps-hwversion-field-size) sends
hwVersion as sbufWriteU8. Update documentation to match: uint8_t
bit-field encoding (bits[7:6]=series, bits[5:0]=generation).
@sensei-hacker sensei-hacker merged commit 990b0dd into iNavFlight:maintenance-10.x Apr 25, 2026
1 check passed
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