summaryrefslogtreecommitdiff
path: root/location/LocationAPI.cpp
diff options
context:
space:
mode:
authorBaili Feng <bailif@codeaurora.org>2017-06-06 15:11:02 +0800
committerDante Russo <drusso@codeaurora.org>2017-06-08 18:00:13 -0700
commit7b1d6ec5aaac458dbf83b7ee5c21261005865ce0 (patch)
treeea01c9fbe22c79174ca1073295c44822ca417cc5 /location/LocationAPI.cpp
parent8bf78f55aeab0cd6dbce758103b37c7587506ddd (diff)
downloadgps-7b1d6ec5aaac458dbf83b7ee5c21261005865ce0.tar.gz
Update the latest LocationOptions to LocationAPI
Call locAPIUpdateTrackingOptions in gnssSetPositionMode. Update tracking options should update the tracking sessions so that the smallest interval options are set. Change-Id: I24cefe4fb711a160d0a72ab7592d8e673ea2dd97 CRs-fixed: 2048231
Diffstat (limited to 'location/LocationAPI.cpp')
-rw-r--r--location/LocationAPI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/location/LocationAPI.cpp b/location/LocationAPI.cpp
index 60a46fe..ed3cc6b 100644
--- a/location/LocationAPI.cpp
+++ b/location/LocationAPI.cpp
@@ -330,7 +330,7 @@ LocationAPI::stopTracking(uint32_t id)
if (gData.flpInterface != NULL) {
gData.flpInterface->stopTracking(this, id);
}
- if (gData.flpInterface != NULL && gData.gnssInterface != NULL) {
+ if (gData.flpInterface == NULL && gData.gnssInterface == NULL) {
LOC_LOGE("%s:%d]: No gnss/flp interface available for Location API client %p ",
__func__, __LINE__, this);
}
@@ -357,7 +357,7 @@ LocationAPI::updateTrackingOptions(uint32_t id, LocationOptions& locationOptions
if (gData.flpInterface != NULL) {
gData.flpInterface->updateTrackingOptions(this, id, locationOptions);
}
- if (gData.flpInterface != NULL && gData.gnssInterface != NULL) {
+ if (gData.flpInterface == NULL && gData.gnssInterface == NULL) {
LOC_LOGE("%s:%d]: No gnss/flp interface available for Location API client %p ",
__func__, __LINE__, this);
}