diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-14 18:29:11 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-14 18:29:11 -0400 |
commit | 4afa4ed0c9928fad659bac2c34e287bda83c379c (patch) | |
tree | ac035bbbf1e46b875598d97334a86ee09631f314 /drivers.c | |
parent | 8d151f4753029229bd0fd17596f25680dd79d36f (diff) | |
download | gpsd-4afa4ed0c9928fad659bac2c34e287bda83c379c.tar.gz |
Fix a bug in MT3301 handling.
Reported by Andy Walls <andy@silverblocksystems.net>.
Diffstat (limited to 'drivers.c')
-rw-r--r-- | drivers.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1088,8 +1088,7 @@ static void mtk3301_event_hook(struct gps_device_t *session, event_t event) */ if (session->context->readonly) return; - /* FIX-ME: Do we need to resend this on reactivation? */ - if (event == event_identified) { + if (event == event_triggermatch) { (void)nmea_send(session, "$PMTK320,0"); /* power save off */ (void)nmea_send(session, "$PMTK300,1000,0,0,0.0,0.0"); /* Fix interval */ (void)nmea_send(session, |