summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-11-04 22:40:41 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-11-04 22:40:41 +0000
commit6a129c1c630e7671df4e9a7dbebddc84bda6158e (patch)
treec66bbca47f3946d2b594c5682dba98aded75fc6a /drivers.c
parente7199f9c077656eb77eec1a4ed735587aafdf534 (diff)
downloadgpsd-6a129c1c630e7671df4e9a7dbebddc84bda6158e.tar.gz
Grrr..fire the event_identified hook and fix a broken conditional.
Diffstat (limited to 'drivers.c')
-rw-r--r--drivers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers.c b/drivers.c
index 6ade2d98..b7b1ccc0 100644
--- a/drivers.c
+++ b/drivers.c
@@ -450,7 +450,7 @@ static void gpsclock_event_hook(struct gps_device_t *session, event_t event)
* Michael St. Laurent <mikes@hartwellcorp.com> reports that you have to
* ignore the trailing PPS edge when extracting time from this chip.
*/
- if (event == event_identified && event == event_reactivate) {
+ if (event == event_identified || event == event_reactivate) {
gpsd_report(LOG_INF, "PPS trailing edge will be ignored");
session->driver.nmea.ignore_trailing_edge = true;
}