mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 05:49:27 +00:00
Merge "Relax assertion criteria in HIDL sensors convert code"
This commit is contained in:
committed by
Android (Google) Code Review
commit
ecd7f8d60d
@@ -190,8 +190,6 @@ void convertFromSensorEvent(const sensors_event_t &src, Event *dst) {
|
||||
}
|
||||
|
||||
default: {
|
||||
CHECK_GE((int32_t)dst->sensorType, (int32_t)SensorType::DEVICE_PRIVATE_BASE);
|
||||
|
||||
memcpy(dst->u.data.data(), src.data, 16 * sizeof(float));
|
||||
break;
|
||||
}
|
||||
@@ -330,9 +328,6 @@ void convertToSensorEvent(const Event &src, sensors_event_t *dst) {
|
||||
}
|
||||
|
||||
default: {
|
||||
CHECK_GE((int32_t)src.sensorType,
|
||||
(int32_t)SensorType::DEVICE_PRIVATE_BASE);
|
||||
|
||||
memcpy(dst->data, src.u.data.data(), 16 * sizeof(float));
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user