diff options
Diffstat (limited to 'mpm/python')
-rw-r--r-- | mpm/python/usrp_mpm/gpsd_iface.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/gpsd_iface.py b/mpm/python/usrp_mpm/gpsd_iface.py index 05bde8c15..63f079e63 100644 --- a/mpm/python/usrp_mpm/gpsd_iface.py +++ b/mpm/python/usrp_mpm/gpsd_iface.py @@ -100,7 +100,7 @@ class GPSDIface(object): # Read results until we see one which contains the requested response class, ie TPV or SKY result = {} end_time = time.time() + timeout - while resp_class not in result: + while not result.get(resp_class, {}): try: self.poll_query() json_result = self.socket_read_line(timeout=timeout) |