Skip to content

Commit 17e2c84

Browse files
committed
Added comment to describe why something was done the way it was
1 parent 86a4d58 commit 17e2c84

File tree

1 file changed

+6
-0
lines changed
  • examples/fabric-bridge-app/linux

1 file changed

+6
-0
lines changed

examples/fabric-bridge-app/linux/main.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@
3535
#include <sys/ioctl.h>
3636
#include <thread>
3737

38+
// This is declared here and not in a header because zap/embr assumes all clusters
39+
// are defined in a static endpoint in the .zap file. From there, the codegen will
40+
// automatically use PluginApplicationCallbacksHeader.jinja to declare and call
41+
// the respective Init callbacks. However, because EcosystemInformation cluster is only
42+
// ever on a dynamic endpoint, this doesn't get declared and called for us, so we
43+
// need to declare and call it ourselves where the application is initialized.
3844
void MatterEcosystemInformationPluginServerInitCallback();
3945

4046
using namespace chip;

0 commit comments

Comments
 (0)