Skip to content

Commit

Permalink
hidl: sensors: 1.0: Add additional pick-up sensor name
Browse files Browse the repository at this point in the history
Change-Id: I83caf59c0e4857f108819238b006b377fda985be
Co-authored-by: LinkBoi00 <[email protected]>
Signed-off-by: bengris32 <[email protected]>
Signed-off-by: chrisl7 <[email protected]>
  • Loading branch information
2 people authored and CHRISL7 committed Sep 28, 2024
1 parent 18783a2 commit 5847d18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hidl/sensors/1.0/convert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ int convertFromRateLevel(RateLevel rate) {
}

bool patchXiaomiPickupSensor(SensorInfo& sensor) {
if (sensor.typeAsString != "xiaomi.sensor.pickup") {
if (sensor.typeAsString != "xiaomi.sensor.pickup" &&
sensor.typeAsString != "xiaomi pick up sensor") {
return true;
}

Expand Down

0 comments on commit 5847d18

Please sign in to comment.