summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorKatz Yamada <kyamada@codeaurora.org>2018-05-07 09:45:20 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-05-07 10:05:34 -0700
commit43699ba79c512ec8cebd54a5e804ea24bc6962eb (patch)
tree55df58d439f7d221776d84bf9abc358b5ba7076f /android
parent5d6ee836086d1ed7769885a824662577f53eef9d (diff)
downloadgps-43699ba79c512ec8cebd54a5e804ea24bc6962eb.tar.gz
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
Diffstat (limited to 'android')
-rw-r--r--android/GnssDebug.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/android/GnssDebug.cpp b/android/GnssDebug.cpp
index 45cde6b..ce39476 100644
--- a/android/GnssDebug.cpp
+++ b/android/GnssDebug.cpp
@@ -122,8 +122,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 ||