diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-01-05 13:54:41 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-01-05 13:54:41 +0000 |
commit | 216b655415b123e4e23952dd3e490467b920ff24 (patch) | |
tree | 3ba1ba1810b330255ee4b664fcaea88196baeb19 /gps.py | |
parent | 6981e7986aa6740dae6544596aba727c33f05d2c (diff) | |
download | gpsd-216b655415b123e4e23952dd3e490467b920ff24.tar.gz |
Occasionally I need a reminder that Python is not LISP.
Diffstat (limited to 'gps.py')
-rwxr-xr-x | gps.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |