Skip to content

Commit

Permalink
Fix IM Event Persistent counter init (#12922)
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google authored Dec 11, 2021
1 parent edbbd7f commit 654c3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/EventManagement.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ struct LogStorageResources
{
if (mpCounterStorage != nullptr && mCounterKey != nullptr && mCounterEpoch != 0)
{
return (mpCounterStorage->Init(*mCounterKey, mCounterEpoch) != CHIP_NO_ERROR) ? mpCounterStorage : nullptr;
return (mpCounterStorage->Init(*mCounterKey, mCounterEpoch) == CHIP_NO_ERROR) ? mpCounterStorage : nullptr;
}
return nullptr;
}
Expand Down

0 comments on commit 654c3e1

Please sign in to comment.