Skip to content

Commit 179bc69

Browse files
committed
Add macro to doorlock to avoid compilation of light
1 parent eb4bd7c commit 179bc69

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19+
#ifdef MATTER_DM_PLUGIN_DOOR_LOCK_SERVER
1920
#include <app/clusters/door-lock-server/door-lock-server.h>
2021
#include <app/data-model/Nullable.h>
2122
#include <app/util/af.h>
@@ -129,3 +130,4 @@ void emberAfDoorLockClusterInitCallback(EndpointId endpoint)
129130
DoorLockServer::Instance().InitServer(endpoint);
130131
LockManager::Instance().InitEndpoint(endpoint);
131132
}
133+
#endif // MATTER_DM_PLUGIN_DOOR_LOCK_SERVER

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

+2
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+
#ifdef MATTER_DM_PLUGIN_DOOR_LOCK_SERVER
1819
#include "chef-lock-endpoint.h"
1920
#include <app-common/zap-generated/attributes/Accessors.h>
2021
#include <cstring>
@@ -675,3 +676,4 @@ const char * LockEndpoint::lockStateToString(DlLockState lockState) const
675676

676677
return "Unknown";
677678
}
679+
#endif // MATTER_DM_PLUGIN_DOOR_LOCK_SERVER

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
18+
#ifdef MATTER_DM_PLUGIN_DOOR_LOCK_SERVER
1919
#include "chef-lock-manager.h"
2020
#include <iostream>
2121
#include <lib/support/logging/CHIPLogging.h>
@@ -371,3 +371,4 @@ LockEndpoint * LockManager::getEndpoint(chip::EndpointId endpointId)
371371
}
372372
return nullptr;
373373
}
374+
#endif // MATTER_DM_PLUGIN_DOOR_LOCK_SERVER

0 commit comments

Comments
 (0)