From 2ae441d42411d416e9e3f39c60f6c14d23708f74 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 31 Oct 2013 23:49:55 -0400 Subject: Contain the assumption that time hinting is done to NTPD. Because it might be going to chrony. Or something else. No logic changes, just name changes and one new derived #define, TIMEHINT_ENABLE. --- gpscap.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gpscap.py') diff --git a/gpscap.py b/gpscap.py index b00f46c7..423cea17 100644 --- a/gpscap.py +++ b/gpscap.py @@ -139,13 +139,13 @@ class GPSDictionary(ConfigParser.RawConfigParser): nmea = self.get(dev, "nmea") ofp.write("%s\n" % nmea) if self.has_option(dev, "pps") and self.get(dev, "pps") == "True": - pps_accuracy = ntp_offset = "" + pps_accuracy = time_offset = "" if self.has_option(dev, "pps_accuracy"): pps_accuracy = self.get(dev, "pps_accuracy") - if self.has_option(dev, "ntp_offset"): - ntp_offset = self.get(dev, "ntp_offset") - if pps_accuracy and ntp_offset: - ofp.write("%s
%s\n" % (pps_accuracy, ntp_offset)) + if self.has_option(dev, "time_offset"): + time_offset = self.get(dev, "time_offset") + if pps_accuracy and time_offset: + ofp.write("%s
%s\n" % (pps_accuracy, time_offset)) else: ofp.write("?
\n") else: -- cgit v1.2.1