summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-02 10:41:07 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-11-02 10:41:07 -0400
commitdae540addfe666a5a296d9be40a283da7dc3d2fe (patch)
treefbe0f8a75c32dd173de604aac33d018b035d2280 /gpsd.c
parent05416cc2c661d3f4c8b391723051927d524f4688 (diff)
downloadgpsd-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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gpsd.c b/gpsd.c
index 51647637..91f76130 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -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");