mirror of
https://gitee.com/openharmony/sensors_sensor
synced 2024-12-04 20:58:50 +00:00
sensor bypass cfi protection rectification
Signed-off-by: cff-gite <chenfeifei8@huawei.com> Change-Id: I7cdde2727e7b523bb55ac9df448fde164ab2f1ec
This commit is contained in:
parent
7007301d65
commit
212a2ef48c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user