Skip to content

Commit

Permalink
ICDHandler initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
thivya-amazon committed Dec 3, 2023
1 parent 5682c14 commit 2102751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/icd/client/ICDHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#include <protocols/secure_channel/Constants.h>

#define PWRTWO(exp) (1 << (exp))
#define PWRTWO(exp) (1UL << (exp))

namespace chip {
namespace app {
Expand Down Expand Up @@ -93,7 +93,7 @@ CHIP_ERROR CheckInMessageHandler::OnMessageReceived(Messaging::ExchangeContext *
if (checkInCounter > clientInfo.offset)
{
clientInfo.offset = counter - clientInfo.start_icd_counter;
if (checkInCounter > PWRTWO(31))
if (checkInCounter > (uint32_t) PWRTWO(31))
{
// TODO - refresh key
}
Expand Down

0 comments on commit 2102751

Please sign in to comment.