Skip to content

Commit 947dc7c

Browse files
Make sure to include ember defines for door lock. (#33341)
* 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. * Restyle --------- Co-authored-by: Andrei Litvin <andreilitvin@google.com>
1 parent 29e1a1b commit 947dc7c

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
@@ -15,6 +15,7 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18+
#include <app/util/config.h>
1819
#include <lib/support/logging/CHIPLogging.h>
1920

2021
#ifdef MATTER_DM_PLUGIN_DOOR_LOCK_SERVER

0 commit comments

Comments
 (0)