diff --git a/services/src/sensor_service_impl.c b/services/src/sensor_service_impl.c index c928cb09a5984ec03358aa7eae4322a7f6620f6f..e62d09681ea7f4c82e27140d23ad131a57edfd09 100644 --- a/services/src/sensor_service_impl.c +++ b/services/src/sensor_service_impl.c @@ -262,7 +262,7 @@ int32_t UnsubscribeSensorImpl(int32_t sensorId, const SensorUser *user) SENSOR_SERVICE, __func__); return SENSOR_ERROR_INVALID_PARAM; } - int32_t ret = g_sensorDevice->Unregister(0); + int32_t ret = g_sensorDevice->Unregister(0, (RecordDataCallback)SensorDataCallback); if (ret != 0) { HILOG_ERROR(HILOG_MODULE_APP, "[SERVICE:%s]: %s unregister sensor failed, ret: %d", SENSOR_SERVICE, __func__, ret);