diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2006-11-01 03:52:17 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2006-11-01 03:52:17 +0000 |
commit | 5b6332ca5ced347d29a112b7ba149bcd9c4e615a (patch) | |
tree | b519957b5ae3a027d16714c87663686c8badea68 /sirf.c | |
parent | afc91595ff4ca45d07640b048b32db005285eb59 (diff) | |
download | gpsd-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |