diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2018-01-11 10:59:04 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-01-11 14:56:14 -0800 |
commit | 536ea8549718e600132c409e58489959c450c8dd (patch) | |
tree | 32d1d8c8f1d59291945e4e1e449b9e82d06b15ef /mpm/python/usrp_mpm | |
parent | f205657e26f5bb7b18c48faf37d8c865d69e7f37 (diff) | |
download | uhd-536ea8549718e600132c409e58489959c450c8dd.tar.gz uhd-536ea8549718e600132c409e58489959c450c8dd.tar.bz2 uhd-536ea8549718e600132c409e58489959c450c8dd.zip |
fixup! mpm: adding GPS sensor functions
Diffstat (limited to 'mpm/python/usrp_mpm')
-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) |