mirror of
https://gitee.com/openharmony/sensors_sensor
synced 2024-12-04 12:53:20 +00:00
!528 修复sensor驱动连接失败服务不启动问题
Merge pull request !528 from lixiangpeng5/lxp
This commit is contained in:
commit
d1ea8fd45b
@ -68,15 +68,12 @@ void SensorService::OnStart()
|
||||
#ifdef HDF_DRIVERS_INTERFACE_SENSOR
|
||||
if (!InitInterface()) {
|
||||
SEN_HILOGE("Init interface error");
|
||||
return;
|
||||
}
|
||||
if (!InitDataCallback()) {
|
||||
SEN_HILOGE("Init data callback error");
|
||||
return;
|
||||
}
|
||||
if (!InitSensorList()) {
|
||||
SEN_HILOGE("Init sensor list error");
|
||||
return;
|
||||
}
|
||||
sensorDataProcesser_ = new (std::nothrow) SensorDataProcesser(sensorMap_);
|
||||
CHKPV(sensorDataProcesser_);
|
||||
|
Loading…
Reference in New Issue
Block a user