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
This commit is contained in:
parent
075e7acc0a
commit
1d42da7b67
1 changed files with 1 additions and 2 deletions
|
@ -3150,7 +3150,7 @@ void
|
||||||
GnssAdapter::reportGnssMeasurementDataEvent(const GnssMeasurementsNotification& measurements,
|
GnssAdapter::reportGnssMeasurementDataEvent(const GnssMeasurementsNotification& measurements,
|
||||||
int msInWeek)
|
int msInWeek)
|
||||||
{
|
{
|
||||||
LOC_LOGD("%s]: ", __func__);
|
LOC_LOGD("%s]: msInWeek=%d", __func__, msInWeek);
|
||||||
|
|
||||||
struct MsgReportGnssMeasurementData : public LocMsg {
|
struct MsgReportGnssMeasurementData : public LocMsg {
|
||||||
GnssAdapter& mAdapter;
|
GnssAdapter& mAdapter;
|
||||||
|
@ -3774,7 +3774,6 @@ GnssAdapter::getAgcInformation(GnssMeasurementsNotification& measurements, int m
|
||||||
systemstatus->getReport(reports, true);
|
systemstatus->getReport(reports, true);
|
||||||
|
|
||||||
if ((!reports.mRfAndParams.empty()) && (!reports.mTimeAndClock.empty()) &&
|
if ((!reports.mRfAndParams.empty()) && (!reports.mTimeAndClock.empty()) &&
|
||||||
reports.mTimeAndClock.back().mTimeValid &&
|
|
||||||
(abs(msInWeek - (int)reports.mTimeAndClock.back().mGpsTowMs) < 2000)) {
|
(abs(msInWeek - (int)reports.mTimeAndClock.back().mGpsTowMs) < 2000)) {
|
||||||
|
|
||||||
for (size_t i = 0; i < measurements.count; i++) {
|
for (size_t i = 0; i < measurements.count; i++) {
|
||||||
|
|
Loading…
Reference in a new issue