Skip to content

Commit

Permalink
[mode-base-cluster]fix: build error while not enable On/Off cluster s…
Browse files Browse the repository at this point in the history
…erver (#28388)

* fix build error while not enable onOff cluster server

* fix include file bug
  • Loading branch information
mideayanghui authored and pull[bot] committed Jan 4, 2024
1 parent 5069e04 commit 852cf7e
Showing 1 changed file with 3 additions and 2 deletions.
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
// 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

0 comments on commit 852cf7e

Please sign in to comment.