diff --git a/services/hdi_connection/adapter/src/hdi_connection.cpp b/services/hdi_connection/adapter/src/hdi_connection.cpp index 3443196b62b6775614ee6256bcec7b4eaf33db8a..2f377b3f231a43fe529669ffe5151f5f13cf5b63 100644 --- a/services/hdi_connection/adapter/src/hdi_connection.cpp +++ b/services/hdi_connection/adapter/src/hdi_connection.cpp @@ -381,16 +381,16 @@ void HdiConnection::Reconnect() SEN_HILOGE("Failed to get an instance of hdi service"); return; } - SensorXcollie registerXcollie("HdiConnection:Reconnect:Register", XCOLLIE_TIMEOUT_5S); - ret = g_sensorInterface->Register(0, g_eventCallback); + SensorXcollie registerXcollie("HdiConnection:Reconnect:RegisterAsync", XCOLLIE_TIMEOUT_5S); + ret = g_sensorInterface->RegisterAsync(0, g_eventCallback); if (ret != 0) { - SEN_HILOGE("Register callback fail"); + SEN_HILOGE("RegisterAsync callback fail"); return; } SensorXcollie regSensorPlugCallBackXcollie("HdiConnection:Reconnect:RegSensorPlugCallBack", XCOLLIE_TIMEOUT_5S); ret = g_sensorInterface->RegSensorPlugCallBack(g_plugCallback); if (ret != 0) { - SEN_HILOGE("Register plug callback fail"); + SEN_HILOGE("RegisterAsync plug callback fail"); return; } std::vector sensorList; diff --git a/services/hdi_connection/adapter/src/sensor_event_callback.cpp b/services/hdi_connection/adapter/src/sensor_event_callback.cpp index 3951ff4a69bccb5b521d64e06d9879c2d845f721..15b8faec6fdfad575cf3d998c284d4b9730c1b95 100644 --- a/services/hdi_connection/adapter/src/sensor_event_callback.cpp +++ b/services/hdi_connection/adapter/src/sensor_event_callback.cpp @@ -54,6 +54,7 @@ void CreatSensorData(SensorData &sensorData, const HdfSensorEvents &event) int32_t SensorEventCallback::OnDataEvent(const HdfSensorEvents &event) { + SEN_HILOGE("Error of Sync function"); return ERR_OK; }