From 4038f17d512962ea9b350056c310a50944c44b80 Mon Sep 17 00:00:00 2001 From: jamesharrow <93921463+jamesharrow@users.noreply.github.com> Date: Mon, 12 Feb 2024 22:21:05 +0000 Subject: [PATCH] 31599 DEMM & EVSEM FeatureMap list has to be updated as per test plan (should be 0) (#32057) * Fixes: #31599 - Changed to remove kOnOff support in EEVSEM and DEMM clusters. * Added a kNoFeatures enum to eevse and demm xml, and then regen_all * Revert "Fixes: #31599 - Changed to remove kOnOff support in EEVSEM and DEMM clusters." This reverts commit b79eec63fb35508772f852e5e402147de17df5fb. --- .../src/device-energy-management-mode.cpp | 3 +-- .../energy-management-common/src/energy-evse-mode.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/energy-management-app/energy-management-common/src/device-energy-management-mode.cpp b/examples/energy-management-app/energy-management-common/src/device-energy-management-mode.cpp index 9f79f78ee653d5..33235198752182 100644 --- a/examples/energy-management-app/energy-management-common/src/device-energy-management-mode.cpp +++ b/examples/energy-management-app/energy-management-common/src/device-energy-management-mode.cpp @@ -94,7 +94,6 @@ void emberAfDeviceEnergyManagementModeClusterInitCallback(chip::EndpointId endpo VerifyOrDie(!gDeviceEnergyManagementModeDelegate && !gDeviceEnergyManagementModeInstance); gDeviceEnergyManagementModeDelegate = std::make_unique(); gDeviceEnergyManagementModeInstance = - std::make_unique(gDeviceEnergyManagementModeDelegate.get(), 0x1, DeviceEnergyManagementMode::Id, - chip::to_underlying(DeviceEnergyManagementMode::Feature::kOnOff)); + std::make_unique(gDeviceEnergyManagementModeDelegate.get(), 0x1, DeviceEnergyManagementMode::Id, 0); gDeviceEnergyManagementModeInstance->Init(); } diff --git a/examples/energy-management-app/energy-management-common/src/energy-evse-mode.cpp b/examples/energy-management-app/energy-management-common/src/energy-evse-mode.cpp index 0d413682d20f84..ce147839a9496f 100644 --- a/examples/energy-management-app/energy-management-common/src/energy-evse-mode.cpp +++ b/examples/energy-management-app/energy-management-common/src/energy-evse-mode.cpp @@ -91,7 +91,6 @@ void emberAfEnergyEvseModeClusterInitCallback(chip::EndpointId endpointId) { VerifyOrDie(!gEnergyEvseModeDelegate && !gEnergyEvseModeInstance); gEnergyEvseModeDelegate = std::make_unique(); - gEnergyEvseModeInstance = std::make_unique(gEnergyEvseModeDelegate.get(), 0x1, EnergyEvseMode::Id, - chip::to_underlying(EnergyEvseMode::Feature::kOnOff)); + gEnergyEvseModeInstance = std::make_unique(gEnergyEvseModeDelegate.get(), 0x1, EnergyEvseMode::Id, 0); gEnergyEvseModeInstance->Init(); }