Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Nov 6, 2021
1 parent bb15cbd commit 8acf726
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
54 changes: 27 additions & 27 deletions src/protocols/bdx/BdxMessages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,14 @@ void TransferInit::LogMessage() const

switch (MessageType)
{
case MessageType::SendInit:
ChipLogProgress(BDX, "SendInit");
break;
case MessageType::ReceiveInit:
ChipLogProgress(BDX, "ReceiveInit");
break;
default:
break;
case MessageType::SendInit:
ChipLogProgress(BDX, "SendInit");
break;
case MessageType::ReceiveInit:
ChipLogProgress(BDX, "ReceiveInit");
break;
default:
break;
}

ChipLogDetail(BDX, " Proposed Transfer Control: 0x%X", TransferCtlOptions.Raw() | Version);
Expand Down Expand Up @@ -469,17 +469,17 @@ void CounterMessage::LogMessage() const
{
switch (MessageType)
{
case MessageType::BlockQuery:
ChipLogProgress(BDX, "BlockQuery");
break;
case MessageType::BlockAck:
ChipLogProgress(BDX, "BlockAck");
break;
case MessageType::BlockAckEOF:
ChipLogProgress(BDX, "BlockAckEOF");
break;
default:
break;
case MessageType::BlockQuery:
ChipLogProgress(BDX, "BlockQuery");
break;
case MessageType::BlockAck:
ChipLogProgress(BDX, "BlockAck");
break;
case MessageType::BlockAckEOF:
ChipLogProgress(BDX, "BlockAckEOF");
break;
default:
break;
}

ChipLogDetail(BDX, " Block Counter: %d", BlockCounter);
Expand Down Expand Up @@ -535,14 +535,14 @@ void DataBlock::LogMessage() const
{
switch (MessageType)
{
case MessageType::Block:
ChipLogProgress(BDX, "Block");
break;
case MessageType::BlockEOF:
ChipLogProgress(BDX, "BlockEOF");
break;
default:
break;
case MessageType::Block:
ChipLogProgress(BDX, "Block");
break;
case MessageType::BlockEOF:
ChipLogProgress(BDX, "BlockEOF");
break;
default:
break;
}

ChipLogDetail(BDX, " Block Counter: %d", BlockCounter);
Expand Down
2 changes: 1 addition & 1 deletion src/protocols/bdx/BdxTransferSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ CHIP_ERROR TransferSession::PrepareBlockAck()

const MessageType msgType = (mState == TransferState::kReceivedEOF) ? MessageType::BlockAckEOF : MessageType::BlockAck;
CounterMessage ackMsg(msgType);
ackMsg.BlockCounter = mLastBlockNum;
ackMsg.BlockCounter = mLastBlockNum;

ReturnErrorOnFailure(WriteToPacketBuffer(ackMsg, mPendingMsgHandle));

Expand Down

0 comments on commit 8acf726

Please sign in to comment.