diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-22 23:09:46 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-22 23:09:46 -0400 |
commit | 11d278890d20cce5dd71f2d354f7a272915b9601 (patch) | |
tree | 9b57bc539628fd7c1e7fee38b4e1ff610459edcb /driver_oncore.c | |
parent | 2ce15ecb3534de88ec3235af545f54953a5926bf (diff) | |
download | gpsd-11d278890d20cce5dd71f2d354f7a272915b9601.tar.gz |
Explain the OnCore status bits drom the binary-protocol manual.
Diffstat (limited to 'driver_oncore.c')
-rw-r--r-- | driver_oncore.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/driver_oncore.c b/driver_oncore.c index aa148beb..b274f0d0 100644 --- a/driver_oncore.c +++ b/driver_oncore.c @@ -176,8 +176,10 @@ oncore_msg_navsol(struct gps_device_t *session, unsigned char *buf, break; } st++; + /* bit 7 of the status word: sat used for position */ if (status & 0x80) session->gpsdata.used[nsv++] = sv; + /* bit 2 of the status word: using for time solution */ if (status & 0x02) session->driver.oncore.good_time = 1; } |