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
This commit is contained in:
Katz Yamada 2018-05-07 09:45:20 -07:00 committed by Gerrit - the friendly Code Review server
parent aa7d24a1d0
commit f708597ed3

View file

@ -139,8 +139,7 @@ Return<void> 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 ||