summaryrefslogtreecommitdiff
path: root/xgps
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2016-04-08 00:30:44 -0700
committerGary E. Miller <gem@rellim.com>2016-04-08 00:30:44 -0700
commit01109c8e96ce15b7ac87b68b2dfbcf16ce337b4c (patch)
treee7a575d6294ecda3ba38af1e8605817312f41a54 /xgps
parentff3a0763773cdaca238440158c359ee776656a8c (diff)
downloadgpsd-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-xxgps3
1 files changed, 2 insertions, 1 deletions
diff --git a/xgps b/xgps
index 0e8f79a3..c7955b4b 100755
--- a/xgps
+++ b/xgps
@@ -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()