Skip to content

Commit 232fe4f

Browse files
committed
Rebase with main branch
1 parent 5826f8f commit 232fe4f

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

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

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -91,28 +91,6 @@ void OvenManager::Init()
9191
VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(AppServer, "RegisterSupportedLevels failed for CookSurfaceEndpoint2"));
9292

9393
VerifyOrReturn(mCookSurfaceEndpoint1.Init() == CHIP_NO_ERROR, ChipLogError(AppServer, "CookSurfaceEndpoint1 Init failed"));
94-
VerifyOrReturn(mCookSurfaceEndpoint2.Init() == CHIP_NO_ERROR, ChipLogError(AppServer, "CookSurfaceEndpoint2 Init failed"));
95-
96-
// Set initial state for CookSurface endpoints
97-
VerifyOrReturn(SetCookSurfaceInitialState(mCookSurfaceEndpoint1.GetEndpointId()) == CHIP_NO_ERROR,
98-
ChipLogError(AppServer, "SetCookSurfaceInitialState failed for CookSurfaceEndpoint1"));
99-
VerifyOrReturn(SetCookSurfaceInitialState(mCookSurfaceEndpoint2.GetEndpointId()) == CHIP_NO_ERROR,
100-
ChipLogError(AppServer, "SetCookSurfaceInitialState failed for CookSurfaceEndpoint2"));
101-
102-
// Register supported temperature levels (Low, Medium, High) for CookSurface endpoints 1 and 2
103-
static const CharSpan kCookSurfaceLevels[] = { CharSpan::fromCharString("Low"), CharSpan::fromCharString("Medium"),
104-
CharSpan::fromCharString("High") };
105-
CHIP_ERROR err = mTemperatureControlDelegate.RegisterSupportedLevels(
106-
kCookSurfaceEndpoint1, kCookSurfaceLevels,
107-
static_cast<uint8_t>(AppSupportedTemperatureLevelsDelegate::kNumTemperatureLevels));
108-
109-
VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(AppServer, "RegisterSupportedLevels failed for CookSurfaceEndpoint1"));
110-
111-
err = mTemperatureControlDelegate.RegisterSupportedLevels(
112-
kCookSurfaceEndpoint2, kCookSurfaceLevels,
113-
static_cast<uint8_t>(AppSupportedTemperatureLevelsDelegate::kNumTemperatureLevels));
114-
115-
VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(AppServer, "RegisterSupportedLevels failed for CookSurfaceEndpoint2"));
11694

11795
DeviceLayer::PlatformMgr().UnlockChipStack();
11896
}

0 commit comments

Comments
 (0)