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

Commit 61a7bbcb authored by Gregory Clark's avatar Gregory Clark
Browse files

Add the HVAC_FAN_DIRECTION_AVAILABLE property.

Bug: b/111371726
Test: Build and flash.
Change-Id: I586e607e313792dae689b82f411db94bf22982aa
(cherry picked from commit a5b4872c616c8f9fa983fad8ed8ef77e1edef618)
parent d8a9538c
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -36,6 +36,8 @@ constexpr int DOOR_1_LEFT = (int)VehicleAreaDoor::ROW_1_LEFT;
constexpr int DOOR_1_RIGHT = (int)VehicleAreaDoor::ROW_1_RIGHT;
constexpr int DOOR_1_RIGHT = (int)VehicleAreaDoor::ROW_1_RIGHT;
constexpr int DOOR_2_LEFT = (int)VehicleAreaDoor::ROW_2_LEFT;
constexpr int DOOR_2_LEFT = (int)VehicleAreaDoor::ROW_2_LEFT;
constexpr int DOOR_2_RIGHT = (int)VehicleAreaDoor::ROW_2_RIGHT;
constexpr int DOOR_2_RIGHT = (int)VehicleAreaDoor::ROW_2_RIGHT;
constexpr int FAN_DIRECTION_FACE = (int)VehicleHvacFanDirection::FACE;
constexpr int FAN_DIRECTION_FLOOR = (int)VehicleHvacFanDirection::FLOOR;
constexpr int OBD2_LIVE_FRAME = (int)VehicleProperty::OBD2_LIVE_FRAME;
constexpr int OBD2_LIVE_FRAME = (int)VehicleProperty::OBD2_LIVE_FRAME;
constexpr int OBD2_FREEZE_FRAME = (int)VehicleProperty::OBD2_FREEZE_FRAME;
constexpr int OBD2_FREEZE_FRAME = (int)VehicleProperty::OBD2_FREEZE_FRAME;
constexpr int OBD2_FREEZE_FRAME_INFO = (int)VehicleProperty::OBD2_FREEZE_FRAME_INFO;
constexpr int OBD2_FREEZE_FRAME_INFO = (int)VehicleProperty::OBD2_FREEZE_FRAME_INFO;
@@ -436,6 +438,13 @@ const ConfigDeclaration kVehicleProperties[]{
                .areaConfigs = {VehicleAreaConfig{.areaId = HVAC_ALL}}},
                .areaConfigs = {VehicleAreaConfig{.areaId = HVAC_ALL}}},
     .initialValue = {.int32Values = {toInt(VehicleHvacFanDirection::FACE)}}},
     .initialValue = {.int32Values = {toInt(VehicleHvacFanDirection::FACE)}}},


    {.config = {.prop = toInt(VehicleProperty::HVAC_FAN_DIRECTION_AVAILABLE),
                .access = VehiclePropertyAccess::READ,
                .changeMode = VehiclePropertyChangeMode::STATIC,
                .areaConfigs = {VehicleAreaConfig{.areaId = HVAC_ALL}}},
     .initialValue = {.int32Values = {FAN_DIRECTION_FACE, FAN_DIRECTION_FLOOR,
                                      FAN_DIRECTION_FACE | FAN_DIRECTION_FLOOR}}},

    {.config = {.prop = toInt(VehicleProperty::HVAC_SEAT_VENTILATION),
    {.config = {.prop = toInt(VehicleProperty::HVAC_SEAT_VENTILATION),
                .access = VehiclePropertyAccess::READ_WRITE,
                .access = VehiclePropertyAccess::READ_WRITE,
                .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                .changeMode = VehiclePropertyChangeMode::ON_CHANGE,