summaryrefslogtreecommitdiff
path: root/gps
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-13 21:15:26 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-13 21:15:26 -0500
commitc156357dc42afafe9efed3597588a33a6055031e (patch)
tree1910eaa98378e6c4aa922ab53a128c454ac74380 /gps
parentcfc75901928f2eb1ce3de20a747b2d01fb11093d (diff)
downloadgpsd-c156357dc42afafe9efed3597588a33a6055031e.tar.gz
ppsbar -> pps.
All regression tests pass. PPS is live in both gpsd and gpsmon.
Diffstat (limited to 'gps')
-rw-r--r--gps/client.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/gps/client.py b/gps/client.py
index 71850563..304fc87e 100644
--- a/gps/client.py
+++ b/gps/client.py
@@ -129,7 +129,7 @@ WATCH_RAW = 0x000080 # output of raw packets
WATCH_SCALED = 0x000100 # scale output to floats
WATCH_TIMING = 0x000200 # timing information
WATCH_SPLIT24 = 0x001000 # split AIS Type 24s
-WATCH_PPSBAR = 0x002000 # enable PPS comment packets
+WATCH_PPS = 0x002000 # enable PPS in raw/NMEA
WATCH_DEVICE = 0x000800 # watch specific device
class gpsjson(gpscommon):
@@ -165,8 +165,8 @@ class gpsjson(gpscommon):
arg += ',"timing":false'
if flags & WATCH_SPLIT24:
arg += ',"split24":false'
- if flags & WATCH_PPSBAR:
- arg += ',"ppsbar":false'
+ if flags & WATCH_PPS:
+ arg += ',"pps":false'
else: # flags & WATCH_ENABLE:
arg = '?WATCH={"enable":true'
if flags & WATCH_JSON:
@@ -183,8 +183,8 @@ class gpsjson(gpscommon):
arg += ',"timing":true'
if flags & WATCH_SPLIT24:
arg += ',"split24":true'
- if flags & WATCH_PPSBAR:
- arg += ',"ppsbar":true'
+ if flags & WATCH_PPS:
+ arg += ',"pps":true'
if flags & WATCH_DEVICE:
arg += ',"device":"%s"' % devpath
return self.send(arg + "}")