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

Commit 6e289c86 authored by Yu Shan's avatar Yu Shan
Browse files

Fix CLUSTER_SWITCH_UI init value.

CLUSTER_SWITCH_UI is a INT32 property that should only have one
init value instead of 2. This is causing confusion in the code
that uses the default value.

Test: None
Bug: 202448791
Change-Id: Id55f448f1dd5ee33291e30d32e6fbf868ad8fe3a
parent a2bbcd26
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1036,7 +1036,7 @@ const ConfigDeclaration kVehicleProperties[]{
                                .access = VehiclePropertyAccess::READ,
                                .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                        },
                .initialValue = {.int32Values = {0 /* ClusterHome */, -1 /* ClusterNone */}},
                .initialValue = {.int32Values = {0 /* ClusterHome */}},
        },
        {
                .config =
+1 −1
Original line number Diff line number Diff line
@@ -1052,7 +1052,7 @@ const std::vector<ConfigDeclaration> kVehicleProperties = {
                                .access = VehiclePropertyAccess::READ,
                                .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                        },
                .initialValue = {.int32Values = {0 /* ClusterHome */, -1 /* ClusterNone */}},
                .initialValue = {.int32Values = {0 /* ClusterHome */}},
        },
        {
                .config =