Check ret value for HIDL callback method
Judge ret value for niNotifyCb to check HIDL return status Change-Id: I0cde3716a971941260f2fb12c9e5927bc8c8d548 CRs-fixed: 2147437
This commit is contained in:
parent
ccd6716531
commit
9fe73f379a
1 changed files with 5 additions and 1 deletions
|
@ -405,7 +405,11 @@ void GnssAPIClient::onGnssNiCb(uint32_t id, GnssNiNotification gnssNiNotificatio
|
|||
notificationGnss.notificationIdEncoding =
|
||||
IGnssNiCallback::GnssNiEncodingType::ENC_SUPL_UCS2;
|
||||
|
||||
gnssNiCbIface->niNotifyCb(notificationGnss);
|
||||
auto r = gnssNiCbIface->niNotifyCb(notificationGnss);
|
||||
if (!r.isOk()) {
|
||||
LOC_LOGE("%s] Error from niNotifyCb description=%s",
|
||||
__func__, r.description().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
void GnssAPIClient::onGnssSvCb(GnssSvNotification gnssSvNotification)
|
||||
|
|
Loading…
Reference in a new issue