summaryrefslogtreecommitdiff
path: root/gps
diff options
context:
space:
mode:
authorNuno Gonçalves <nunojpg@gmail.com>2016-06-14 18:38:24 -0700
committerGary E. Miller <gem@rellim.com>2016-06-14 18:38:24 -0700
commit0ff6913bc7963611c6fb00091c38871d16e9e527 (patch)
treef44e9107bd9830ba69919bc59e153899559c1009 /gps
parente77e2d2f90061e8060c7fb55f26d0f1914d96559 (diff)
downloadgpsd-0ff6913bc7963611c6fb00091c38871d16e9e527.tar.gz
gps.py: Don't negate flags twice!
Flags are already interpreted as false at class gpsjson when WATCH_DISABLE is present. Signed-off-by: Gary E. Miller <gem@rellim.com>
Diffstat (limited to 'gps')
-rwxr-xr-xgps/gps.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gps/gps.py b/gps/gps.py
index 46daa9da..d80fac9c 100755
--- a/gps/gps.py
+++ b/gps/gps.py
@@ -280,7 +280,7 @@ class gps(gpscommon, gpsdata, gpsjson):
arg += 'r-'
return self.send(arg)
else:
- gpsjson.stream(self, ~flags, devpath)
+ gpsjson.stream(self, flags, devpath)
else: # flags & WATCH_ENABLE:
if flags & WATCH_OLDSTYLE:
arg = 'w+'