diff options
author | Kai Wang <kwangsudo@google.com> | 2020-09-22 01:50:03 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-09-22 01:50:03 +0000 |
commit | f10a9af711515da477fff30960fa1888a564b1a7 (patch) | |
tree | 13bae13d4aab91c21d149509886252d3c57193f6 | |
parent | 3648ac967a6707767ef2df1cb9aa93b1a1a83f2d (diff) | |
parent | b1aa30c3c1fdc95b033ebda74ef4d81f5f4963ee (diff) | |
download | platform_hardware_interfaces-f10a9af711515da477fff30960fa1888a564b1a7.tar.gz platform_hardware_interfaces-f10a9af711515da477fff30960fa1888a564b1a7.tar.bz2 platform_hardware_interfaces-f10a9af711515da477fff30960fa1888a564b1a7.zip |
Merge "Add configArray for Gear_Selection in google VHAL" into rvc-qpr-dev
-rw-r--r-- | automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h b/automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h index 16e1bf7291..cf1840499c 100644 --- a/automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h +++ b/automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h @@ -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)}}}, |