From 664e6431705d425d208ad65f21bb66501ff2c6bf Mon Sep 17 00:00:00 2001 From: Katz Yamada Date: Mon, 7 May 2018 09:45:20 -0700 Subject: [PATCH] fix: Incorrect time estimate in debug report GNSS Time estimate shown in Gnss debug report is incorrect. It always shows default value instead of value delivered by PQWM1 message. Change-Id: Iff471613ac6fa25d213c14b543871b6c3ae7af0a CRs-Fixed: 2235219 --- android/GnssDebug.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/GnssDebug.cpp b/android/GnssDebug.cpp index 33d7aa52..e80eee6b 100644 --- a/android/GnssDebug.cpp +++ b/android/GnssDebug.cpp @@ -120,8 +120,7 @@ Return GnssDebug::getDebugData(getDebugData_cb _hidl_cb) reports.mTime.frequencyUncertaintyNsPerSec; } - if (data.time.timeEstimate <= 0 || - data.time.timeEstimate > GNSS_DEBUG_UNKNOWN_UTC_TIME) { + if (data.time.timeEstimate < GNSS_DEBUG_UNKNOWN_UTC_TIME) { data.time.timeEstimate = GNSS_DEBUG_UNKNOWN_UTC_TIME; } if (data.time.timeUncertaintyNs <= 0 ||