diff options
author | Gary E. Miller <gem@rellim.com> | 2018-10-13 18:34:24 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-10-13 18:34:24 -0700 |
commit | 4538174cd4a0f0436ff26c2f8174a92a22b766e5 (patch) | |
tree | 40ad31d41e4d1f55b8855b886afd37deb5910093 /driver_ubx.c | |
parent | b623a2337033059fea8bc4c57a236c8b03025d53 (diff) | |
download | gpsd-4538174cd4a0f0436ff26c2f8174a92a22b766e5.tar.gz |
driver_ubx: Fix endian-ness of UBX-NAV-SAT.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r-- | driver_ubx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_ubx.c b/driver_ubx.c index 4d09db82..6609f81c 100644 --- a/driver_ubx.c +++ b/driver_ubx.c @@ -544,7 +544,7 @@ ubx_msg_nav_sat(struct gps_device_t *session, unsigned char *buf, unsigned char gnssId = getub(buf, off + 0); short svId = (short)getub(buf, off + 1); unsigned char cno = getub(buf, off + 2); - uint32_t flags = getbeu32(buf, off + 8); + uint32_t flags = getleu32(buf, off + 8); bool used = (bool)(flags & 0x08); if (0 == svId) { |