Merge "Skip position filtering for telematics"

This commit is contained in:
Linux Build Service Account 2018-08-05 05:29:31 -07:00 committed by Gerrit - the friendly Code Review server
commit 6f17924602

View file

@ -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;