summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver_ubx.c')
-rw-r--r--driver_ubx.c2
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) {