Skip to content

Commit 2e9e57c

Browse files
Renamed electrical sensor files as they were the same as the cluster files
1 parent 8f0d1d2 commit 2e9e57c

File tree

11 files changed

+14
-22
lines changed

11 files changed

+14
-22
lines changed

examples/energy-management/electrical-sensor/BUILD.gn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ config("config") {
2121

2222
static_library("electrical-sensor") {
2323
sources = [
24-
"${chip_root}/examples/energy-management/electrical-sensor/src/ElectricalPowerMeasurementDelegate.cpp",
25-
"${chip_root}/examples/energy-management/electrical-sensor/src/PowerTopologyDelegate.cpp",
24+
"${chip_root}/examples/energy-management/electrical-sensor/src/ElectricalPowerMeasurementDelegateImpl.cpp",
25+
"${chip_root}/examples/energy-management/electrical-sensor/src/PowerTopologyDelegateImpl.cpp",
2626
]
2727

2828
public_configs = [ ":config" ]

examples/energy-management/electrical-sensor/include/ElectricalPowerMeasurementDelegate.h renamed to examples/energy-management/electrical-sensor/include/ElectricalPowerMeasurementDelegateImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
#pragma once
1919

20-
#include <app/clusters/electrical-power-measurement-server/electrical-power-measurement-server.h>
20+
#include <app/clusters/electrical-power-measurement-server/CodegenIntegration.h>
2121
#include <app/util/af-types.h>
2222
#include <lib/core/CHIPError.h>
2323

examples/energy-management/electrical-sensor/include/PowerTopologyDelegate.h renamed to examples/energy-management/electrical-sensor/include/PowerTopologyDelegateImpl.h

File renamed without changes.

examples/energy-management/electrical-sensor/src/ElectricalPowerMeasurementDelegate.cpp renamed to examples/energy-management/electrical-sensor/src/ElectricalPowerMeasurementDelegateImpl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
* limitations under the License.
1717
*/
1818

19-
#include <ElectricalPowerMeasurementDelegate.h>
19+
#include <ElectricalPowerMeasurementDelegateImpl.h>
2020
#include <app/reporting/reporting.h>
21+
#include <clusters/ElectricalPowerMeasurement/Attributes.h>
2122

2223
namespace chip {
2324
namespace app {

examples/energy-management/electrical-sensor/src/PowerTopologyDelegate.cpp renamed to examples/energy-management/electrical-sensor/src/PowerTopologyDelegateImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
#include <PowerTopologyDelegate.h>
19+
#include <PowerTopologyDelegateImpl.h>
2020

2121
namespace chip {
2222
namespace app {

examples/evse-app/evse-common/include/EVSEManufacturerImpl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
#include <DEMManufacturerDelegate.h>
2222
#include <DeviceEnergyManagementManager.h>
23-
#include <ElectricalPowerMeasurementDelegate.h>
23+
#include <ElectricalPowerMeasurementDelegateImpl.h>
2424
#include <EnergyEvseManager.h>
25-
#include <PowerTopologyDelegate.h>
25+
#include <PowerTopologyDelegateImpl.h>
2626

2727
using chip::Protocols::InteractionModel::Status;
2828
namespace chip {

examples/evse-app/evse-common/src/EnergyEvseMain.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
#include <DeviceEnergyManagementDelegateImpl.h>
2222
#include <DeviceEnergyManagementManager.h>
2323
#include <EVSEManufacturerImpl.h>
24-
#include <ElectricalPowerMeasurementDelegate.h>
24+
#include <ElectricalPowerMeasurementDelegateImpl.h>
2525
#include <EnergyEvseManager.h>
2626
#include <EnergyManagementAppCmdLineOptions.h>
27-
#include <PowerTopologyDelegate.h>
27+
#include <PowerTopologyDelegateImpl.h>
2828
#include <app/clusters/electrical-energy-measurement-server/electrical-energy-measurement-server.h>
2929
#include <device-energy-management-modes.h>
3030
#include <energy-evse-modes.h>

examples/evse-app/silabs/src/AppTask.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ void AppTask::AppTaskMain(void * pvParameter)
217217

218218
void AppTask::EnergyManagementActionEventHandler(AppEvent * aEvent)
219219
{
220-
bool initiated = false;
221220
int32_t actor;
222221
CHIP_ERROR err = CHIP_NO_ERROR;
223222

@@ -231,13 +230,7 @@ void AppTask::EnergyManagementActionEventHandler(AppEvent * aEvent)
231230
err = APP_ERROR_UNHANDLED_EVENT;
232231
}
233232

234-
if (err == CHIP_NO_ERROR)
235-
{
236-
if (!initiated)
237-
{
238-
SILABS_LOG("Action is already in progress or active.");
239-
}
240-
}
233+
// TODO: Implement evse action here (ex: Simulate car just plugged in or call event trigger)
241234
}
242235

243236
void AppTask::ButtonEventHandler(uint8_t button, uint8_t btnAction)

examples/water-heater-app/water-heater-common/src/WaterHeaterMain.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424
#include <DeviceEnergyManagementDelegateImpl.h>
2525
#include <DeviceEnergyManagementManager.h>
26-
#include <ElectricalPowerMeasurementDelegate.h>
26+
#include <ElectricalPowerMeasurementDelegateImpl.h>
2727
#include <EnergyManagementAppCmdLineOptions.h>
28-
#include <PowerTopologyDelegate.h>
28+
#include <PowerTopologyDelegateImpl.h>
2929
#include <WaterHeaterInstance.h>
3030
#include <WaterHeaterMain.h>
3131
#include <WaterHeaterManufacturer.h>

src/app/clusters/power-topology-server/CodegenIntegration.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
*/
1818
#pragma once
1919

20-
#include <lib/core/Optional.h>
21-
2220
#include <app/clusters/power-topology-server/PowerTopologyCluster.h>
2321
#include <app/clusters/power-topology-server/PowerTopologyDelegate.h>
2422

0 commit comments

Comments
 (0)