Checking return for ODCPI CB
Adding return value check for ODCPI HIDL callback API CRs-Fixed: 2263480 Change-Id: I652a4717ab08f8a0c64b3bc0f78bae4e8f553513
This commit is contained in:
parent
309ff25859
commit
7a8e0643c3
1 changed files with 3 additions and 4 deletions
|
@ -434,10 +434,9 @@ void Gnss::odcpiRequestCb(const OdcpiRequestInfo& request) {
|
|||
// For emergency mode, request DBH (Device based hybrid) location
|
||||
// Mark Independent from GNSS flag to false.
|
||||
if (ODCPI_REQUEST_TYPE_START == request.type) {
|
||||
if (request.isEmergencyMode) {
|
||||
mGnssCbIface_1_1->gnssRequestLocationCb(false);
|
||||
} else {
|
||||
mGnssCbIface_1_1->gnssRequestLocationCb(true);
|
||||
auto r = mGnssCbIface_1_1->gnssRequestLocationCb(!request.isEmergencyMode);
|
||||
if (!r.isOk()) {
|
||||
LOC_LOGe("Error invoking gnssRequestLocationCb %s", r.description().c_str());
|
||||
}
|
||||
} else {
|
||||
LOC_LOGv("Unsupported ODCPI request type: %d", request.type);
|
||||
|
|
Loading…
Reference in a new issue