aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/gpsd_iface.py
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2018-01-11 10:59:04 -0800
committerMartin Braun <martin.braun@ettus.com>2018-01-11 14:56:14 -0800
commit536ea8549718e600132c409e58489959c450c8dd (patch)
tree32d1d8c8f1d59291945e4e1e449b9e82d06b15ef /mpm/python/usrp_mpm/gpsd_iface.py
parentf205657e26f5bb7b18c48faf37d8c865d69e7f37 (diff)
downloaduhd-536ea8549718e600132c409e58489959c450c8dd.tar.gz
uhd-536ea8549718e600132c409e58489959c450c8dd.tar.bz2
uhd-536ea8549718e600132c409e58489959c450c8dd.zip
fixup! mpm: adding GPS sensor functions
Diffstat (limited to 'mpm/python/usrp_mpm/gpsd_iface.py')
-rw-r--r--mpm/python/usrp_mpm/gpsd_iface.py2
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)