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

Commit 073e68f2 authored by Tyler Trephan's avatar Tyler Trephan
Browse files

Implemented EV_BATTERY_DISPLAY_UNITS

Test: atest CarPropertyManagerTest
Bug: 232859264
Change-Id: I8a3663f345a08b88e0047cd1211eb99978e4ded9
parent 7ff24f2a
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -171,6 +171,17 @@ const std::vector<ConfigDeclaration> kVehicleProperties = {
                 },
         .initialValue = {.int32Values = {toInt(VehicleUnit::KILOMETERS_PER_HOUR)}}},

        {.config =
                 {
                         .prop = toInt(VehicleProperty::EV_BATTERY_DISPLAY_UNITS),
                         .access = VehiclePropertyAccess::READ_WRITE,
                         .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                         .configArray = {toInt(VehicleUnit::WATT_HOUR),
                                         toInt(VehicleUnit::AMPERE_HOURS),
                                         toInt(VehicleUnit::KILOWATT_HOUR)},
                 },
         .initialValue = {.int32Values = {toInt(VehicleUnit::KILOWATT_HOUR)}}},

        {.config =
                 {
                         .prop = toInt(VehicleProperty::SEAT_OCCUPANCY),