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

Commit 4b0c5abe authored by Pavel Maltsev's avatar Pavel Maltsev
Browse files

Fix static properties to comply with VTS

Test: VTS is passing

Bug: b/32021794
Change-Id: I0bc0cd98f27ec8b059df283a52fbe18d88962e35
parent d5c63c87
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -176,13 +176,7 @@ const VehiclePropConfig kVehicleProperties[] = {
    {
        .prop = toInt(VehicleProperty::INFO_FUEL_CAPACITY),
        .access = VehiclePropertyAccess::READ,
        .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
        .areaConfigs = {
            VehicleAreaConfig {
                .minFloatValue = 0,
                .maxFloatValue = 1.0
            }
        }
        .changeMode = VehiclePropertyChangeMode::STATIC,
    },

    {
+1 −1
Original line number Diff line number Diff line
@@ -410,7 +410,7 @@ void DefaultVehicleHal::setDefaultValue(VehiclePropValue* prop) {
        prop->value.int32Values[0] = toInt(VehicleGear::GEAR_PARK);
        break;
    case toInt(VehicleProperty::INFO_FUEL_CAPACITY):
        prop->value.floatValues[0] = 0.75f;
        prop->value.floatValues[0] = 123000.0f;  // In milliliters
        break;
    case toInt(VehicleProperty::ENGINE_OIL_TEMP):
        prop->value.floatValues[0] = 101;