From 9bb67cc1d40bcdf3ec21fdf66373a134eeadd711 Mon Sep 17 00:00:00 2001 From: Katz Yamada Date: Thu, 3 May 2018 11:41:51 -0700 Subject: [PATCH] fix: Add intermediate fixes in gnss debug report Include intermediate location fix info in gnss debug report that is cached in SystemStatus in addition to final fixes, so that the gnss debug report should always hold the latest information. Change-Id: I60aef92cf6d143a1b4f4b510ca2113887d051dcc CRs-Fixed: 2230415 --- gnss/GnssAdapter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnss/GnssAdapter.cpp b/gnss/GnssAdapter.cpp index a482acc0..d08bd447 100644 --- a/gnss/GnssAdapter.cpp +++ b/gnss/GnssAdapter.cpp @@ -2050,7 +2050,8 @@ GnssAdapter::reportPositionEvent(const UlpLocation& ulpLocation, inline virtual void proc() const { // extract bug report info - this returns true if consumed by systemstatus SystemStatus* s = mAdapter.getSystemStatus(); - if ((nullptr != s) && (LOC_SESS_SUCCESS == mStatus)){ + if ((nullptr != s) && + ((LOC_SESS_SUCCESS == mStatus) || (LOC_SESS_INTERMEDIATE == mStatus))){ s->eventPosition(mUlpLocation, mLocationExtended); } mAdapter.reportPosition(mUlpLocation, mLocationExtended, mStatus, mTechMask);