Skip to content

Commit 49e5816

Browse files
committed
Make sure to include ember defines for door lock.
Chef was using MATTER_DM_PLUGIN_DOOR_LOCK_SERVER without including relevant headers (and assuming that data model would transitively define them) This does not work anymore, so include app config instead.
1 parent 3ca3c04 commit 49e5816

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

examples/chef/common/clusters/door-lock/chef-doorlock-stubs.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
#include <app/data-model/Nullable.h>
20+
#include <app/util/config.h>
2021
#include <lib/core/DataModelTypes.h>
2122

2223
#ifdef MATTER_DM_PLUGIN_DOOR_LOCK_SERVER

examples/chef/common/clusters/door-lock/chef-lock-endpoint.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
#include <app-common/zap-generated/attributes/Accessors.h>
20+
#include <app/util/config.h>
2021
#include <cstring>
2122
#include <platform/CHIPDeviceLayer.h>
2223
#include <platform/internal/CHIPDeviceLayerInternal.h>

examples/chef/common/clusters/door-lock/chef-lock-manager.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* limitations under the License.
1717
*/
1818
#include <lib/support/logging/CHIPLogging.h>
19+
#include <app/util/config.h>
1920

2021
#ifdef MATTER_DM_PLUGIN_DOOR_LOCK_SERVER
2122
#include "chef-lock-manager.h"

0 commit comments

Comments
 (0)