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

Commit b1aa30c3 authored by Kai's avatar Kai Committed by Kai Wang
Browse files

Add configArray for Gear_Selection in google VHAL

ConfigArray in Gear_Selection indicates the supported Gear

Bug: 165942804
Test: build and check value in emulator
Change-Id: I4567031a072edda550b671bc190934d24d5b5eba
(cherry picked from commit a3b16c2d)
parent 294b32dd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -688,6 +688,12 @@ const ConfigDeclaration kVehicleProperties[]{
                         .prop = toInt(VehicleProperty::GEAR_SELECTION),
                         .access = VehiclePropertyAccess::READ,
                         .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                         .configArray = {(int)VehicleGear::GEAR_PARK,
                                         (int)VehicleGear::GEAR_NEUTRAL,
                                         (int)VehicleGear::GEAR_REVERSE,
                                         (int)VehicleGear::GEAR_DRIVE, (int)VehicleGear::GEAR_1,
                                         (int)VehicleGear::GEAR_2, (int)VehicleGear::GEAR_3,
                                         (int)VehicleGear::GEAR_4, (int)VehicleGear::GEAR_5},
                 },
         .initialValue = {.int32Values = {toInt(VehicleGear::GEAR_PARK)}}},