sensor bypass cfi protection rectification

Signed-off-by: cff-gite <chenfeifei8@huawei.com>
Change-Id: I7cdde2727e7b523bb55ac9df448fde164ab2f1ec
This commit is contained in:
cff-gite 2024-07-01 15:16:14 +08:00
parent 7007301d65
commit 212a2ef48c

View File

@ -84,8 +84,9 @@ int32_t SensorAgentProxy::CreateSensorDataChannel()
return ERR_OK;
}
CHKPR(dataChannel_, INVALID_POINTER);
auto ret = dataChannel_->CreateSensorDataChannel([this] (SensorEvent *events, int32_t num, void *data)
{ this->HandleSensorData(events, num, data); }, nullptr);
auto ret = dataChannel_->CreateSensorDataChannel([this] (SensorEvent *events, int32_t num, void *data) {
this->HandleSensorData(events, num, data);
}, nullptr);
if (ret != ERR_OK) {
SEN_HILOGE("Create data channel failed, ret:%{public}d", ret);
return ret;