Skip to content

Commit 26bc13b

Browse files
Renamed electrical sensor files as they were the same as the cluster files
1 parent f1a6fa1 commit 26bc13b

File tree

10 files changed

+12
-20
lines changed

10 files changed

+12
-20
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
using namespace chip;
2324
using namespace chip::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
using namespace chip;
2222
using namespace chip::app::Clusters;

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
@@ -218,7 +218,6 @@ void AppTask::AppTaskMain(void * pvParameter)
218218

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

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

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

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
#include "CodegenIntegration.h"
18+
#include <app/clusters/power-topology-server/CodegenIntegration.h>

0 commit comments

Comments
 (0)