Skip to content

Commit

Permalink
Fix compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinpan1 committed May 17, 2024
1 parent addca91 commit b405966
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/chef/common/clusters/switch/SwitchEventHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include <app-common/zap-generated/attributes/Accessors.h>
#ifdef MATTER_DM_PLUGIN_SWITCH_SERVER
#include <app/clusters/switch-server/switch-server.h>
#include <app/server/Server.h>
#include <app/util/att-storage.h>
Expand Down Expand Up @@ -78,3 +79,4 @@ void SwitchEventHandler::OnMultiPressComplete(EndpointId endpointId, uint8_t pre

Clusters::SwitchServer::Instance().OnMultiPressComplete(endpointId, previousPosition, count);
}
#endif // MATTER_DM_PLUGIN_SWITCH_SERVER
2 changes: 2 additions & 0 deletions examples/chef/common/clusters/switch/SwitchManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* limitations under the License.
*/

#ifdef MATTER_DM_PLUGIN_SWITCH_SERVER
#include "SwitchEventHandler.h"
#include <app-common/zap-generated/attributes/Accessors.h>
#include <app/clusters/switch-server/switch-server.h>
Expand Down Expand Up @@ -168,3 +169,4 @@ void emberAfSwitchClusterInitCallback(EndpointId endpointId)
ChefRpcActionsWorker::Instance().RegisterRpcActionsDelegate(Clusters::Switch::Id, gSwitchActionsDelegate);
SetTagList(/* endpoint= */ 1, Span<const Clusters::Descriptor::Structs::SemanticTagStruct::Type>(gLatchingSwitch));
}
#endif // MATTER_DM_PLUGIN_SWITCH_SERVER
1 change: 1 addition & 0 deletions examples/chef/esp32/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ set(SRC_DIRS_LIST
"${CMAKE_SOURCE_DIR}/../common/clusters/low-power/"
"${CMAKE_SOURCE_DIR}/../common/clusters/media-input/"
"${CMAKE_SOURCE_DIR}/../common/clusters/media-playback/"
"${CMAKE_SOURCE_DIR}/../common/clusters/switch/"
"${CMAKE_SOURCE_DIR}/../common/clusters/target-navigator/"
"${CMAKE_SOURCE_DIR}/../common/clusters/wake-on-lan/"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/zzz_generated/app-common/app-common/zap-generated/attributes"
Expand Down
2 changes: 2 additions & 0 deletions examples/chef/nrfconnect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ target_sources(app PRIVATE
${CHEF}/common/clusters/low-power/LowPowerManager.cpp
${CHEF}/common/clusters/media-input/MediaInputManager.cpp
${CHEF}/common/clusters/media-playback/MediaPlaybackManager.cpp
${CHEF}/common/clusters/switch/SwitchEventHandler.cpp
${CHEF}/common/clusters/switch/SwitchManager.cpp
${CHEF}/common/clusters/target-navigator/TargetNavigatorManager.cpp
${CHEF}/common/clusters/wake-on-lan/WakeOnLanManager.cpp
${CHEF}/common/stubs.cpp
Expand Down

0 comments on commit b405966

Please sign in to comment.