summaryrefslogtreecommitdiff
path: root/sirf.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-05-23 17:18:26 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-05-23 17:18:26 +0000
commit0760c43b51a17e671d5ceb3aaab94549c638833e (patch)
tree455d2f2df85d7d353add98cf88a3cd541f58794b /sirf.c
parentf62e4bad69cafc67bfd62c35668afdf0a55517a1 (diff)
downloadgpsd-0760c43b51a17e671d5ceb3aaab94549c638833e.tar.gz
Enable MID52 if SiRF firmware version is 232 or higher.
Diffstat (limited to 'sirf.c')
-rw-r--r--sirf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sirf.c b/sirf.c
index bfd82b81..4d2c3976 100644
--- a/sirf.c
+++ b/sirf.c
@@ -267,6 +267,12 @@ int sirf_parse(struct gps_device_t *session, unsigned char *buf, int len)
} else if (fv < 232)
session->driverstate |= SIRF_EQ_231;
else {
+ u_int8_t enablemid52[] = {
+ 0xa0, 0xa2, 0x00, 0x08,
+ 0xa6, 0x00, 0x34, 0x01, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0xdb, 0xb0, 0xb3};
+ gpsd_report(4, "Enabling PPS message...\n");
+ sirf_write(session->gpsdata.gps_fd, enablemid52);
session->driverstate |= SIRF_GE_232;
session->context->valid |= LEAP_SECOND_VALID;
}