From 536ea8549718e600132c409e58489959c450c8dd Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Thu, 11 Jan 2018 10:59:04 -0800 Subject: fixup! mpm: adding GPS sensor functions --- mpm/python/usrp_mpm/gpsd_iface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpm/python/usrp_mpm') 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) -- cgit v1.2.3