diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-09 03:20:05 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-09 03:20:05 -0400 |
commit | d471ea870e65222a0fced5130031218c2bf1ab14 (patch) | |
tree | 289272eb8700065cfaecd26c26404f7c105dd8ba /gpsd.c | |
parent | 4ee2e712a50a47391ee9e4e05aa53be85748b6b0 (diff) | |
download | gpsd-d471ea870e65222a0fced5130031218c2bf1ab14.tar.gz |
Introduce a mode option so gpscotl can be less intrusive than gpsd.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |