Skip to content

Commit

Permalink
ci build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wqx6 committed Feb 28, 2024
1 parent 3948817 commit a6307a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/SimpleSubscriptionResumptionStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ CHIP_ERROR SimpleSubscriptionResumptionStorage::Load(uint16_t subscriptionIndex,
}
ReturnErrorOnFailure(reader.ExitContainer(eventsListType));

#if CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
// If the reader cannot get resumption retries, set it to 0 for subscriptionInfo
if (reader.Next(kResumptionRetriesTag) == CHIP_NO_ERROR)
{
Expand All @@ -262,6 +263,7 @@ CHIP_ERROR SimpleSubscriptionResumptionStorage::Load(uint16_t subscriptionIndex,
{
subscriptionInfo.mResumptionRetries = 0;
}
#endif // CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION

ReturnErrorOnFailure(reader.ExitContainer(subscriptionContainerType));

Expand Down Expand Up @@ -318,8 +320,9 @@ CHIP_ERROR SimpleSubscriptionResumptionStorage::Save(TLV::TLVWriter & writer, Su
ReturnErrorOnFailure(writer.EndContainer(eventContainerType));
}
ReturnErrorOnFailure(writer.EndContainer(eventsListType));

#if CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
ReturnErrorOnFailure(writer.Put(kResumptionRetriesTag, subscriptionInfo.mResumptionRetries));
#endif // CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION

ReturnErrorOnFailure(writer.EndContainer(subscriptionContainerType));

Expand Down

0 comments on commit a6307a6

Please sign in to comment.