Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e509bf1f authored by Kai Wang's avatar Kai Wang
Browse files

Add areaId for CRITICALLY_LOW_TIRE_PRESSURE

CRITICALLY_LOW_TIRE_PRESSURE is a seat type property. Added areaId into
the property config.

Bug: 174585018
Test: atest AtsCarHostTests
Change-Id: I260b9e79844f44cad31efcf510301af0ee6227a1
parent 0786af29
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -307,6 +307,18 @@ const ConfigDeclaration kVehicleProperties[]{
                         .prop = toInt(VehicleProperty::CRITICALLY_LOW_TIRE_PRESSURE),
                         .access = VehiclePropertyAccess::READ,
                         .changeMode = VehiclePropertyChangeMode::STATIC,
                         .areaConfigs = {VehicleAreaConfig{
                                                 .areaId = WHEEL_FRONT_LEFT,
                                         },
                                         VehicleAreaConfig{
                                                 .areaId = WHEEL_FRONT_RIGHT,
                                         },
                                         VehicleAreaConfig{
                                                 .areaId = WHEEL_REAR_LEFT,
                                         },
                                         VehicleAreaConfig{
                                                 .areaId = WHEEL_REAR_RIGHT,
                                         }},
                 },
         .initialAreaValues = {{WHEEL_FRONT_LEFT, {.floatValues = {137.0f}}},
                               {WHEEL_FRONT_RIGHT, {.floatValues = {137.0f}}},