summaryrefslogtreecommitdiff
path: root/gps
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-12 06:47:31 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-12 06:47:31 -0500
commit5ec72a3575e5c0963e09949d651ea9f99ed09b09 (patch)
tree04a321a1bdb6300310aa9de4899272c239a0cda8 /gps
parentff188b51f8d57c873dea8972e55b5633521462c3 (diff)
downloadgpsd-5ec72a3575e5c0963e09949d651ea9f99ed09b09.tar.gz
Fix buggy enable-flag-to-JSON mapping in the Python interface.
Diffstat (limited to 'gps')
-rw-r--r--gps/client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gps/client.py b/gps/client.py
index 1460659d..0144c6b9 100644
--- a/gps/client.py
+++ b/gps/client.py
@@ -173,10 +173,10 @@ class gpsjson(gpscommon):
arg += ',"json":true'
if flags & WATCH_NMEA:
arg += ',"nmea":true'
- if flags & WATCH_RAW:
- arg += ',"raw":1'
if flags & WATCH_RARE:
- arg += ',"raw":0'
+ arg += ',"raw":1'
+ if flags & WATCH_RAW:
+ arg += ',"raw":2'
if flags & WATCH_SCALED:
arg += ',"scaled":true'
if flags & WATCH_TIMING: