summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-08-21 03:36:49 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-08-21 03:36:49 -0400
commitf661120570dfa268689117af49dd0bfdeb419e14 (patch)
tree8f2627a52de9f99b899ae8774c1aa0845b882863
parent908a4b133455df8ed1b6ab997c534b0df98524fd (diff)
downloadgpsd-f661120570dfa268689117af49dd0bfdeb419e14.tar.gz
Revert "Remove dodgy sentence-suppresion code in SiRF driver."
Dodgy code turned out to be right after all - just needs documentation.
-rw-r--r--driver_sirf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/driver_sirf.c b/driver_sirf.c
index d07a59e0..0dfc5faa 100644
--- a/driver_sirf.c
+++ b/driver_sirf.c
@@ -1486,6 +1486,12 @@ static void sirfbin_event_hook(struct gps_device_t *session, event_t event)
}
break;
+ case 12:
+ gpsd_report(session->context->debug, LOG_PROG, "SiRF: disable MID 7, 28, 29, 30, 31...\n");
+ putbyte(unsetmidXX, 5, 0x05);
+ (void)sirf_write(session, unsetmidXX);
+ break;
+
#endif /* RECONFIGURE_ENABLE */
default:
/* initialization is done */