Skip to content

Commit

Permalink
Gate inclusion of on-off-server.h based on whether an on-off cluster …
Browse files Browse the repository at this point in the history
…is present in the application. Build fails when no on-off cluster is present.
  • Loading branch information
eric-ocasio-nxp committed Apr 26, 2023
1 parent 23a8e5a commit 6863358
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/clusters/mode-select-server/mode-select-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
#include <app/CommandHandler.h>
#include <app/ConcreteCommandPath.h>
#include <app/clusters/mode-select-server/supported-modes-manager.h>

#ifdef EMBER_AF_PLUGIN_ON_OFF
#include <app/clusters/on-off-server/on-off-server.h>
#endif // EMBER_AF_PLUGIN_ON_OFF

#include <app/util/af.h>
#include <app/util/attribute-storage.h>
#include <app/util/config.h>
Expand Down

0 comments on commit 6863358

Please sign in to comment.