diff --git a/services/miscdevice_service/BUILD.gn b/services/miscdevice_service/BUILD.gn index a92e64f950fa08185014c5c6210770fd431ca430..636ea8c2e3142efe039bb4d2855382d524ba794c 100644 --- a/services/miscdevice_service/BUILD.gn +++ b/services/miscdevice_service/BUILD.gn @@ -43,7 +43,7 @@ ohos_shared_library("libmiscdevice_service") { "safwk:system_ability_fwk", "samgr_standard:samgr_proxy", "utils_base:utils", - "vibrator_device_driver_interface:libvibrator_proxy_1.0", + "vibrator_device_driver_interface:libvibrator_proxy_1.1", ] part_name = "miscdevice" diff --git a/services/miscdevice_service/hdi_connection/adpter/include/hdi_connection.h b/services/miscdevice_service/hdi_connection/adpter/include/hdi_connection.h index b128f4a0688c94eb2c3ed9ad914cc5e11a3e09d5..3195f57a8ca69cca7e2f0dc443247b48e95acd46 100644 --- a/services/miscdevice_service/hdi_connection/adpter/include/hdi_connection.h +++ b/services/miscdevice_service/hdi_connection/adpter/include/hdi_connection.h @@ -17,8 +17,8 @@ #define HDI_CONNECTION_H #include "death_recipient_template.h" #include "i_vibrator_hdi_connection.h" -#include "v1_0/vibrator_interface_proxy.h" -using OHOS::HDI::Vibrator::V1_0::IVibratorInterface; +#include "v1_1/vibrator_interface_proxy.h" +using OHOS::HDI::Vibrator::V1_1::IVibratorInterface; namespace OHOS { namespace Sensors { class HdiConnection : public IVibratorHdiConnection { 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 099ebefc1e069dc8d987b5b25390928d7a00890b..cca56d4fa3f3da0f43f8833113ba16922a393279 100644 --- a/services/miscdevice_service/hdi_connection/adpter/src/hdi_connection.cpp +++ b/services/miscdevice_service/hdi_connection/adpter/src/hdi_connection.cpp @@ -70,7 +70,7 @@ int32_t HdiConnection::Start(const std::string &effectType) int32_t HdiConnection::Stop(VibratorStopMode mode) { - int32_t ret = vibratorInterface_->Stop(static_cast(mode)); + int32_t ret = vibratorInterface_->Stop(static_cast(mode)); if (ret < 0) { MISC_HILOGE("Stop failed"); return ret; @@ -88,7 +88,7 @@ void HdiConnection::RegisterHdiDeathRecipient() { CALL_LOG_ENTER; if (vibratorInterface_ == nullptr) { - MISC_HILOGE("connect v1_0 hdi failed"); + MISC_HILOGE("connect v1_1 hdi failed"); return; } hdiDeathObserver_ = new (std::nothrow) DeathRecipientTemplate(*const_cast(this));