diff options
author | Nuno Gonçalves <nunojpg@gmail.com> | 2016-06-14 18:38:24 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-06-14 18:38:24 -0700 |
commit | 0ff6913bc7963611c6fb00091c38871d16e9e527 (patch) | |
tree | f44e9107bd9830ba69919bc59e153899559c1009 /gps | |
parent | e77e2d2f90061e8060c7fb55f26d0f1914d96559 (diff) | |
download | gpsd-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-x | gps/gps.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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+' |