Skip to content

Commit 7653d68

Browse files
committed
Commands implementation
1 parent f120dc2 commit 7653d68

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ using namespace chip::app::Clusters::CookSurface;
2626

2727
CHIP_ERROR CookSurfaceEndpoint::Init()
2828
{
29+
bool state = false;
30+
OnOffServer::Instance().getOnOffValue(mEndpointId, &state);
31+
currentOnOffState = state;
2932
return CHIP_NO_ERROR;
3033
}
3134

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

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

2929
#include "AppSupportedTemperatureLevelsDelegate.h"
30-
#include "CookSurfaceEndpoint.h"
31-
#include "CookTopEndpoint.h"
30+
// Corrected relative paths (silabs/include -> go up two levels to oven-app root)
3231
#include "OvenEndpoint.h"
32+
<<<<<<< HEAD
33+
=======
34+
#include "CookTopEndpoint.h"
35+
#include "CookSurfaceEndpoint.h"
36+
>>>>>>> 9e0e5250ea (Commands implementation)
3337

3438
#include "AppEvent.h"
3539

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@
1717
*/
1818

1919
#include "OvenManager.h"
20+
// Corrected relative paths to shared oven-app-common headers (src/ -> ../../)
2021
#include "CookSurfaceEndpoint.h"
2122
#include "CookTopEndpoint.h"
2223
#include "OvenEndpoint.h"
2324

25+
#include "AppConfig.h"
26+
#include "AppTask.h"
27+
2428
#include <app-common/zap-generated/attributes/Accessors.h>
2529
#include <app-common/zap-generated/cluster-objects.h>
2630
#include <app/clusters/mode-base-server/mode-base-cluster-objects.h>

0 commit comments

Comments
 (0)