Skip to content

Commit 021d893

Browse files
committed
Clean-up the command handling logic
1 parent bfc3015 commit 021d893

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

examples/oven-app/oven-app-common/src/CookSurfaceEndpoint.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ CHIP_ERROR CookSurfaceEndpoint::Init()
2828
{
2929
bool state = false;
3030
OnOffServer::Instance().getOnOffValue(mEndpointId, &state);
31-
currentOnOffState = state;
3231
return CHIP_NO_ERROR;
3332
}
3433

examples/oven-app/silabs/include/OvenManager.h

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,9 @@
2727
#pragma once
2828

2929
#include "AppSupportedTemperatureLevelsDelegate.h"
30-
// Corrected relative paths (silabs/include -> go up two levels to oven-app root)
3130
#include "OvenEndpoint.h"
32-
<<<<<<< HEAD
33-
=======
3431
#include "CookTopEndpoint.h"
3532
#include "CookSurfaceEndpoint.h"
36-
>>>>>>> 9e0e5250ea (Commands implementation)
3733

3834
#include "AppEvent.h"
3935

@@ -101,7 +97,6 @@ class OvenManager
10197
* @param size Size of the new value.
10298
*/
10399
void TempCtrlAttributeChangeHandler(chip::EndpointId endpointId, chip::AttributeId attributeId, uint8_t * value, uint16_t size);
104-
105100
/**
106101
* @brief Handles on/off attribute changes.
107102
*
@@ -111,6 +106,15 @@ class OvenManager
111106
* @param size Size of the new value.
112107
*/
113108
void OnOffAttributeChangeHandler(chip::EndpointId endpointId, chip::AttributeId attributeId, uint8_t * value, uint16_t size);
109+
110+
/**
111+
* @brief Handles oven mode attribute changes.
112+
*
113+
* @param endpointId The ID of the endpoint.
114+
* @param attributeId The ID of the attribute.
115+
* @param value Pointer to the new value.
116+
* @param size Size of the new value.
117+
*/
114118
void OvenModeAttributeChangeHandler(chip::EndpointId endpointId, chip::AttributeId attributeId, uint8_t * value, uint16_t size);
115119

116120
/**

examples/oven-app/silabs/src/OvenManager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*/
1818

1919
#include "OvenManager.h"
20-
// Corrected relative paths to shared oven-app-common headers (src/ -> ../../)
2120
#include "CookSurfaceEndpoint.h"
2221
#include "CookTopEndpoint.h"
2322
#include "OvenEndpoint.h"

0 commit comments

Comments
 (0)