diff options
author | Gary E. Miller <gem@rellim.com> | 2018-07-24 18:26:31 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-07-24 18:26:31 -0700 |
commit | 65e53d4495ee72288e5563522ea509da8bec5073 (patch) | |
tree | b8008e4fe244a307f1f4fb83ce67293d91a2e812 /gpsd.c | |
parent | 774127e50b6383c93f5e273d86a773a4774a9896 (diff) | |
download | gpsd-65e53d4495ee72288e5563522ea509da8bec5073.tar.gz |
gpsd: fix SHM() output.
SHM() output got broken in 1744cd9f87006c85492edf1f476e054bdb744ea1.
many thanks to Paul Theodoropoulos <paul@anastrophe.com> for tracking
this down.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1270,7 +1270,7 @@ static void handle_request(struct subscriber_t *sub, devconf.stopbits = device->gpsdata.dev.stopbits; if (devconf.stopbits == DEVDEFAULT_STOPBITS) devconf.stopbits = device->gpsdata.dev.stopbits; - if (0 != isfinite(devconf.cycle)) + if (0 == isfinite(devconf.cycle)) devconf.cycle = device->gpsdata.dev.cycle; /* now that channel is selected, apply changes */ @@ -1560,7 +1560,7 @@ static void all_reports(struct gps_device_t *device, gps_mask_t changed) /* many GPS spew random times until a valid GPS fix */ /* allow override with -r optin */ //gpsd_log(&context.errout, LOG_PROG, "NTP: no fix\n"); - } else if (0 != isfinite(device->newdata.time)) { + } else if (0 == isfinite(device->newdata.time)) { //gpsd_log(&context.errout, LOG_PROG, "NTP: bad new time\n"); #if defined(PPS_ENABLE) } else if (device->newdata.time <= device->pps_thread.fix_in.real.tv_sec) { |