diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-02 10:41:07 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-02 10:41:07 -0400 |
commit | dae540addfe666a5a296d9be40a283da7dc3d2fe (patch) | |
tree | fbe0f8a75c32dd173de604aac33d018b035d2280 /gpsd.c | |
parent | 05416cc2c661d3f4c8b391723051927d524f4688 (diff) | |
download | gpsd-dae540addfe666a5a296d9be40a283da7dc3d2fe.tar.gz |
Eliminate an enable flag that always gets set true.
All regression tests pass. PPS is live.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1524,9 +1524,7 @@ static void all_reports(struct gps_device_t *device, gps_mask_t changed) * Only update the NTP time if we've seen the leap-seconds data. * Else we may be providing GPS time. */ - if (device->context->enable_ntpshm == 0) { - //gpsd_report(context.debug, LOG_PROG, "NTP: off\n"); - } else if ((changed & TIME_SET) == 0) { + if ((changed & TIME_SET) == 0) { //gpsd_report(context.debug, LOG_PROG, "NTP: No time this packet\n"); } else if (isnan(device->newdata.time)) { //gpsd_report(context.debug, LOG_PROG, "NTP: bad new time\n"); |