summaryrefslogtreecommitdiff
path: root/gnss
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-08-05 05:29:31 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-08-05 05:29:31 -0700
commit6f1792460255cd6949d657ee2306e2fe963224d3 (patch)
treec70822364bf6accf646ce704c9b79d763d8568a5 /gnss
parent230751d957cd0ec5e30682bd4352670a644be40c (diff)
parent12b33020949e491c60aaf17ca23a09de0456c3a4 (diff)
downloadgps-6f1792460255cd6949d657ee2306e2fe963224d3.tar.gz
Merge "Skip position filtering for telematics"
Diffstat (limited to 'gnss')
-rw-r--r--gnss/GnssAdapter.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnss/GnssAdapter.cpp b/gnss/GnssAdapter.cpp
index 75cb321..f75febd 100644
--- a/gnss/GnssAdapter.cpp
+++ b/gnss/GnssAdapter.cpp
@@ -2872,7 +2872,12 @@ GnssAdapter::needReport(const UlpLocation& ulpLocation,
enum loc_sess_status status,
LocPosTechMask techMask) {
bool reported = false;
- if (LOC_SESS_SUCCESS == status) {
+
+ // if engine hub is enabled, aka, any of the engine services is enabled,
+ // then always output position reported by engine hub to requesting client
+ if (true == initEngHubProxy()) {
+ reported = true;
+ } else if (LOC_SESS_SUCCESS == status) {
// this is a final fix
LocPosTechMask mask =
LOC_POS_TECH_MASK_SATELLITE | LOC_POS_TECH_MASK_SENSORS | LOC_POS_TECH_MASK_HYBRID;