summaryrefslogtreecommitdiff
path: root/sirf.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-11-01 03:52:17 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-11-01 03:52:17 +0000
commit5b6332ca5ced347d29a112b7ba149bcd9c4e615a (patch)
treeb519957b5ae3a027d16714c87663686c8badea68 /sirf.c
parentafc91595ff4ca45d07640b048b32db005285eb59 (diff)
downloadgpsd-5b6332ca5ced347d29a112b7ba149bcd9c4e615a.tar.gz
Enable raw tracker data if the port speed is high enough.
Embedded users, please tell me if this causes problems.
Diffstat (limited to 'sirf.c')
-rw-r--r--sirf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sirf.c b/sirf.c
index a47e1d68..9c5a4182 100644
--- a/sirf.c
+++ b/sirf.c
@@ -294,7 +294,7 @@ gps_mask_t sirf_parse(struct gps_device_t *session, unsigned char *buf, size_t l
gpsd_report(4, "Driver state flags are: %0x\n", session->driver.sirf.driverstate);
session->driver.sirf.time_seen = 0;
#ifdef ALLOW_RECONFIGURE
- if ((session->context->valid & LEAP_SECOND_VALID)==0) {
+ if (session->saved_baud >= 38400){
gpsd_report(4, "Enabling subframe transmission...\n");
(void)sirf_write(session->gpsdata.gps_fd, enablesubframe);
}
@@ -333,7 +333,7 @@ gps_mask_t sirf_parse(struct gps_device_t *session, unsigned char *buf, size_t l
gpsd_interpret_subframe(session, words);
#ifdef ALLOW_RECONFIGURE
- if (session->context->valid & LEAP_SECOND_VALID) {
+ if (session->saved_baud < 38400){
gpsd_report(4, "Disabling subframe transmission...\n");
(void)sirf_write(session->gpsdata.gps_fd, disablesubframe);
}