@@ -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