diff options
author | Fred Wright <fw@fwright.net> | 2016-04-08 00:30:44 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-04-08 00:30:44 -0700 |
commit | 01109c8e96ce15b7ac87b68b2dfbcf16ce337b4c (patch) | |
tree | e7a575d6294ecda3ba38af1e8605817312f41a54 /xgps | |
parent | ff3a0763773cdaca238440158c359ee776656a8c (diff) | |
download | gpsd-01109c8e96ce15b7ac87b68b2dfbcf16ce337b4c.tar.gz |
Fix the case where TPV has no field status.
TPV has field status only when STATUS_DGPS
Signed-off-by: Gary E. Miller <gem@rellim.com>
Diffstat (limited to 'xgps')
-rwxr-xr-x | xgps | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -759,7 +759,8 @@ class Base: status = "3D FIX" else: status = "NO FIX" - if data.status == gps.STATUS_DGPS_FIX: + + if hasattr(data, 'status') and data.status == gps.STATUS_DGPS_FIX: status += " DIFF" if data.mode != self.saved_mode: self.last_transition = time.time() |