From 2a66dd6fa6d022ed0bc00cf650779b20adcd7f55 Mon Sep 17 00:00:00 2001 From: yue Date: Fri, 29 Apr 2022 15:42:54 +0800 Subject: [PATCH] feat:support hdi passthrought mode Signed-off-by: yue --- .../hdi_connection/adpter/src/hdi_connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/miscdevice_service/hdi_connection/adpter/src/hdi_connection.cpp b/services/miscdevice_service/hdi_connection/adpter/src/hdi_connection.cpp index 06723c0..099ebef 100644 --- a/services/miscdevice_service/hdi_connection/adpter/src/hdi_connection.cpp +++ b/services/miscdevice_service/hdi_connection/adpter/src/hdi_connection.cpp @@ -96,7 +96,7 @@ void HdiConnection::RegisterHdiDeathRecipient() MISC_HILOGE("hdiDeathObserver_ cannot be null"); return; } - vibratorInterface_->AsObject()->AddDeathRecipient(hdiDeathObserver_); + OHOS::HDI::hdi_objcast(vibratorInterface_)->AddDeathRecipient(hdiDeathObserver_); } void HdiConnection::UnregisterHdiDeathRecipient() @@ -106,7 +106,7 @@ void HdiConnection::UnregisterHdiDeathRecipient() MISC_HILOGE("vibratorInterface_ or hdiDeathObserver_ is null"); return; } - vibratorInterface_->AsObject()->RemoveDeathRecipient(hdiDeathObserver_); + OHOS::HDI::hdi_objcast(vibratorInterface_)->RemoveDeathRecipient(hdiDeathObserver_); } void HdiConnection::ProcessDeathObserver(const wptr &object) -- Gitee