Skip to content

Commit

Permalink
Fix conditions for kICDMsgAckSyncEvent (#29263)
Browse files Browse the repository at this point in the history
This event is posted even when the ICD feature is disabled. Fix the
condition.
  • Loading branch information
mspang authored Sep 14, 2023
1 parent 3ae526d commit d4cbdbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/messaging/ReliableMessageContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <messaging/ExchangeMgr.h>
#include <messaging/ReliableMessageContext.h>

#include <app/AppConfig.h>
#include <lib/core/CHIPEncoding.h>
#include <lib/support/CodeUtils.h>
#include <lib/support/Defer.h>
Expand Down Expand Up @@ -58,7 +59,7 @@ void ReliableMessageContext::SetMessageNotAcked(bool messageNotAcked)
{
mFlags.Set(Flags::kFlagMessageNotAcked, messageNotAcked);

#if CONFIG_DEVICE_LAYER
#if CONFIG_DEVICE_LAYER && CHIP_CONFIG_ENABLE_ICD_SERVER
DeviceLayer::ChipDeviceEvent event;
event.Type = DeviceLayer::DeviceEventType::kICDMsgAckSyncEvent;
event.AckSync.awaitingAck = messageNotAcked;
Expand Down

0 comments on commit d4cbdbc

Please sign in to comment.