[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH] Possible bug-fix in ubx driver.
From: |
Håkan Johansson |
Subject: |
[gpsd-dev] [PATCH] Possible bug-fix in ubx driver. |
Date: |
Mon, 14 Mar 2016 19:49:44 +0100 |
User-agent: |
Alpine 2.11 (DEB 23 2013-08-11) |
Both TOW and week numbers are used, so should both be valid.
Note: I have no ubx hardware to perform live tests.
scons check pass
---
driver_ubx.c | 3 ++-
1 fil ändrad, 2 tillägg(+), 1 borttagning(-)
diff --git a/driver_ubx.c b/driver_ubx.c
index d1d29f8..41ebc24 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -163,7 +163,8 @@ ubx_msg_nav_sol(struct gps_device_t *session, unsigned
char *buf,
flags = (unsigned int)getub(buf, 11);
mask = 0;
- if ((flags & (UBX_SOL_VALID_WEEK | UBX_SOL_VALID_TIME)) != 0) {
+ if ((flags & (UBX_SOL_VALID_WEEK | UBX_SOL_VALID_TIME)) ==
+ (UBX_SOL_VALID_WEEK | UBX_SOL_VALID_TIME)) {
unsigned short gw;
unsigned int tow;
tow = (unsigned int)getleu32(buf, 0);
--
1.7.10.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gpsd-dev] [PATCH] Possible bug-fix in ubx driver.,
Håkan Johansson <=