mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Skip direct report test if sensor is not available" into oc-dev am: 63524f9fcc
am: 7bea962c9c
Change-Id: I99d4eb05d1348e24910c5ebe2e87b6b334138b31
This commit is contained in:
@@ -1235,6 +1235,11 @@ void SensorsHidlTest::testDirectReportOperation(
|
||||
|
||||
SensorInfo sensor = defaultSensorByType(type);
|
||||
|
||||
if (!isValidType(sensor.type)) {
|
||||
// no default sensor of this type
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isDirectReportRateSupported(sensor, rate)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user