From 4951d4d8d3d145f6f66d7c8f29ca244a6ac52ab7 Mon Sep 17 00:00:00 2001 From: mideayanghui Date: Sat, 29 Jul 2023 10:36:20 +0800 Subject: [PATCH 1/2] fix build error while not enable onOff cluster server --- src/app/clusters/mode-base-server/mode-base-server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/clusters/mode-base-server/mode-base-server.cpp b/src/app/clusters/mode-base-server/mode-base-server.cpp index d2e56f172627dc..ac96170c589899 100644 --- a/src/app/clusters/mode-base-server/mode-base-server.cpp +++ b/src/app/clusters/mode-base-server/mode-base-server.cpp @@ -193,7 +193,7 @@ CHIP_ERROR Instance::Init() } } } - +#ifdef EMBER_AF_PLUGIN_ON_OFF_SERVER // OnMode with Power Up // If the On/Off feature is supported and the On/Off cluster attribute StartUpOnOff is present, with a // value of On (turn on at power up), then the CurrentMode attribute SHALL be set to the OnMode attribute @@ -227,7 +227,7 @@ CHIP_ERROR Instance::Init() } } } - +#endif // EMBER_AF_PLUGIN_ON_OFF_SERVER return CHIP_NO_ERROR; } From 4e443fb9fe02a145b8ec56b870ee45bd71f47b1e Mon Sep 17 00:00:00 2001 From: mideayanghui Date: Thu, 3 Aug 2023 19:18:28 +0800 Subject: [PATCH 2/2] fix include file bug --- src/app/clusters/mode-base-server/mode-base-server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/clusters/mode-base-server/mode-base-server.cpp b/src/app/clusters/mode-base-server/mode-base-server.cpp index ac96170c589899..4495e728fc7ecb 100644 --- a/src/app/clusters/mode-base-server/mode-base-server.cpp +++ b/src/app/clusters/mode-base-server/mode-base-server.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include using namespace chip;