Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mode-base-cluster]fix: build error while not enable On/Off cluster server #28388

Merged
merged 4 commits into from
Aug 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/app/clusters/mode-base-server/mode-base-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <app/clusters/on-off-server/on-off-server.h>
#include <app/reporting/reporting.h>
#include <app/util/attribute-storage.h>
#include <app/util/config.h>
#include <platform/DiagnosticDataProvider.h>

using namespace chip;
Expand Down Expand Up @@ -193,7 +194,7 @@ CHIP_ERROR Instance::Init()
}
}
}

#ifdef EMBER_AF_PLUGIN_ON_OFF_SERVER
mideayanghui marked this conversation as resolved.
Show resolved Hide resolved
// 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
Expand Down Expand Up @@ -227,7 +228,7 @@ CHIP_ERROR Instance::Init()
}
}
}

#endif // EMBER_AF_PLUGIN_ON_OFF_SERVER
return CHIP_NO_ERROR;
}

Expand Down