Skip to content

Commit d0c519d

Browse files
committed
Added NDEBUG ifndef to minimize code size
1 parent 3c5b92c commit d0c519d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

examples/light-switch-app/silabs/src/ZclCallbacks.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
using namespace ::chip;
3131
using namespace ::chip::app::Clusters;
3232

33+
#ifndef NDEBUG
3334
void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath & attributePath, uint8_t type, uint16_t size,
3435
uint8_t * value)
3536
{
@@ -50,6 +51,8 @@ void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath &
5051
ChipLogValueMEI(attributeId), type, *value, size);
5152
}
5253
}
54+
#ifndef NDEBUG
55+
5356

5457
/** @brief OnOff Cluster Init
5558
*

examples/lock-app/silabs/src/ZclCallbacks.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ using namespace ::chip::app::Clusters;
3939
using namespace ::chip::DeviceLayer::Internal;
4040
using ::chip::app::DataModel::Nullable;
4141

42+
#ifndef NDEBUG
4243
void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath & attributePath, uint8_t type, uint16_t size,
4344
uint8_t * value)
4445
{
@@ -56,6 +57,7 @@ void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath &
5657
#endif // DIC_ENABLE
5758
}
5859
}
60+
#endif // NDEBUG
5961

6062
/** @brief DoorLock Cluster Init
6163
*

0 commit comments

Comments
 (0)