From 864d80533243578917ecc9e56bf00037a2ca92db Mon Sep 17 00:00:00 2001 From: Mike Cailean Date: Mon, 25 Jun 2018 14:36:06 -0700 Subject: [PATCH] Get AGC from PQWM1 regardless of time validity Eliminated time valid dependency when processing PQWM1 message to get AGC Bug: 110460486 Change-Id: I962272a749599db7a9dc84e00da9e1152686c366 CRs-fixed: 2267159 --- gnss/GnssAdapter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnss/GnssAdapter.cpp b/gnss/GnssAdapter.cpp index 30bc4212..f8ba0eb4 100644 --- a/gnss/GnssAdapter.cpp +++ b/gnss/GnssAdapter.cpp @@ -2470,7 +2470,7 @@ void GnssAdapter::reportGnssMeasurementDataEvent(const GnssMeasurementsNotification& measurements, int msInWeek) { - LOC_LOGD("%s]: ", __func__); + LOC_LOGD("%s]: msInWeek=%d", __func__, msInWeek); struct MsgReportGnssMeasurementData : public LocMsg { GnssAdapter& mAdapter; @@ -3176,7 +3176,6 @@ GnssAdapter::getAgcInformation(GnssMeasurementsNotification& measurements, int m systemstatus->getReport(reports, true); if ((!reports.mRfAndParams.empty()) && (!reports.mTimeAndClock.empty()) && - reports.mTimeAndClock.back().mTimeValid && (abs(msInWeek - (int)reports.mTimeAndClock.back().mGpsTowMs) < 2000)) { for (size_t i = 0; i < measurements.count; i++) {