summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-09 03:20:05 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-09 03:20:05 -0400
commitd471ea870e65222a0fced5130031218c2bf1ab14 (patch)
tree289272eb8700065cfaecd26c26404f7c105dd8ba /gpsd.c
parent4ee2e712a50a47391ee9e4e05aa53be85748b6b0 (diff)
downloadgpsd-d471ea870e65222a0fced5130031218c2bf1ab14.tar.gz
Introduce a mode option so gpscotl can be less intrusive than gpsd.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd.c b/gpsd.c
index 5427716c..41dcafa8 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -678,7 +678,7 @@ static void deactivate_device(struct gps_device_t *device)
static bool open_device( /*@null@*/struct gps_device_t *device)
{
- if (NULL == device || gpsd_activate(device) < 0) {
+ if (NULL == device || gpsd_activate(device, O_OPTIMIZE) < 0) {
return false;
}
gpsd_report(context.debug, LOG_INF,
@@ -922,7 +922,7 @@ static bool awaken(struct gps_device_t *device)
device->gpsdata.gps_fd, device->gpsdata.dev.path);
return true;
} else {
- if (gpsd_activate(device) < 0) {
+ if (gpsd_activate(device, O_OPTIMIZE) < 0) {
gpsd_report(context.debug, LOG_ERROR,
"%s: device activation failed.\n",
device->gpsdata.dev.path);