gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH] gps.py: Don't negate flags twice!


From: Nuno Gonçalves
Subject: [gpsd-dev] [PATCH] gps.py: Don't negate flags twice!
Date: Mon, 13 Jun 2016 19:32:23 +0100

Flags are already interpreted as false at class gpsjson when
WATCH_DISABLE is present.

Signed-off-by: Nuno Goncalves <address@hidden>
---
 gps/gps.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gps/gps.py b/gps/gps.py
index 46daa9d..d80fac9 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+'
-- 
2.7.4



reply via email to

[Prev in Thread] Current Thread [Next in Thread]