summaryrefslogtreecommitdiff
path: root/gps.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-01-05 13:54:41 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-01-05 13:54:41 +0000
commit216b655415b123e4e23952dd3e490467b920ff24 (patch)
tree3ba1ba1810b330255ee4b664fcaea88196baeb19 /gps.py
parent6981e7986aa6740dae6544596aba727c33f05d2c (diff)
downloadgpsd-216b655415b123e4e23952dd3e490467b920ff24.tar.gz
Occasionally I need a reminder that Python is not LISP.
Diffstat (limited to 'gps.py')
-rwxr-xr-xgps.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gps.py b/gps.py
index c9027dc9..d9018ba6 100755
--- a/gps.py
+++ b/gps.py
@@ -6,7 +6,7 @@
import time, calendar, math, socket, sys, select
NaN = float('nan')
-def isnan(x): str(x) == 'nan'
+def isnan(x): return str(x) == 'nan'
ONLINE_SET = 0x00000001
TIME_SET = 0x00000002
@@ -308,8 +308,8 @@ class gps(gpsdata):
return cnv(fields[i])
self.utc = fields[1]
self.fix.time = default(1)
- #if not isnan(self.fix.time):
- # self.utc = isotime(self.fix.time)
+ if not isnan(self.fix.time):
+ self.utc = isotime(self.fix.time)
self.fix.ept = default(2)
self.fix.latitude = default(3)
self.fix.longitude = default(4)