diff options
author | Moritz Fischer <moritz.fischer@ettus.com> | 2015-12-22 19:42:01 -0800 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2016-01-05 22:28:19 -0500 |
commit | 32ed522e47c6c455002d2536881d6608a965c8f9 (patch) | |
tree | ab502d5fcf8ce6dc887e98a6f80a431d9475f465 /libgpsd_core.c | |
parent | 1d2d09998f094a8aed07b46b63d9872753c7cf9c (diff) | |
download | gpsd-32ed522e47c6c455002d2536881d6608a965c8f9.tar.gz |
libgpsd-core: Fix issue with ACTIVATE hook not being called.
In the current system session->mode seemed to ignore the
O_OPTIMIZE flag, leading to the ACTIVATE hook being ignored.
Another way to fix this would be to keep the session->mode
condition pull up the check for O_CONTINUE.
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index 78b6bb90..c3aad99d 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -546,7 +546,7 @@ int gpsd_open(struct gps_device_t *session) int gpsd_activate(struct gps_device_t *session, const int mode) /* acquire a connection to the GPS device */ { - if (session->mode == O_OPTIMIZE) + if (mode == O_OPTIMIZE) gpsd_run_device_hook(&session->context->errout, session->gpsdata.dev.path, "ACTIVATE"); session->gpsdata.gps_fd = gpsd_open(session); |