From 1e14af1e4c102021efbc3e76590779b6b16d470e Mon Sep 17 00:00:00 2001 From: Mike Cailean Date: Tue, 18 Sep 2018 17:32:16 -0700 Subject: [PATCH] Set SV in use mask based on final fixes Do not set SV in use mask based on intermediate position update from modem since it might contain stale information. Reset the flag indicating SV are used in fix for intermediate fixes. Change-Id: I10a324a160b20a6ced94c689acf9fc9d77f6e826 CRs-fixed: 2318041 Signed-off-by: Akhil Narang --- gps/gnss/GnssAdapter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gps/gnss/GnssAdapter.cpp b/gps/gnss/GnssAdapter.cpp index d7390722..9ef2dcde 100644 --- a/gps/gnss/GnssAdapter.cpp +++ b/gps/gnss/GnssAdapter.cpp @@ -2091,6 +2091,7 @@ GnssAdapter::reportPosition(const UlpLocation& ulpLocation, LocPosTechMask techMask) { bool reported = needReport(ulpLocation, status, techMask); + mGnssSvIdUsedInPosAvail = false; if (reported) { if (locationExtended.flags & GPS_LOCATION_EXTENDED_HAS_GNSS_SV_USED_DATA) { mGnssSvIdUsedInPosAvail = true;