@@ -39,9 +39,7 @@ void AsyncTransferFacilitator::CleanUp()
39
39
this );
40
40
}
41
41
42
- AsyncTransferFacilitator::~AsyncTransferFacilitator ()
43
- {
44
- }
42
+ AsyncTransferFacilitator::~AsyncTransferFacilitator () {}
45
43
46
44
bdx::StatusCode AsyncTransferFacilitator::GetBdxStatusCodeFromChipError (CHIP_ERROR err)
47
45
{
@@ -57,9 +55,10 @@ bdx::StatusCode AsyncTransferFacilitator::GetBdxStatusCodeFromChipError(CHIP_ERR
57
55
}
58
56
59
57
/* *
60
- * Calls the GetNextAction on the TransferSession to get the next output events until it receives TransferSession::OutputEventType::kNone
61
- * If the output event is of type TransferSession::OutputEventType::kMsgToSend, it sends the message over the exchange context, otherwise it
62
- * calls the HandleTransferSessionOutput method implemented by the subclass to handle the BDX message.
58
+ * Calls the GetNextAction on the TransferSession to get the next output events until it receives
59
+ * TransferSession::OutputEventType::kNone If the output event is of type TransferSession::OutputEventType::kMsgToSend, it sends the
60
+ * message over the exchange context, otherwise it calls the HandleTransferSessionOutput method implemented by the subclass to
61
+ * handle the BDX message.
63
62
*/
64
63
void AsyncTransferFacilitator::HandleNextOutputEvents ()
65
64
{
@@ -92,7 +91,8 @@ void AsyncTransferFacilitator::HandleNextOutputEvents()
92
91
mHandlingOutputEvents = false ;
93
92
}
94
93
95
- CHIP_ERROR AsyncTransferFacilitator::SendMessage (const TransferSession::MessageTypeData msgTypeData, System::PacketBufferHandle & msgBuf)
94
+ CHIP_ERROR AsyncTransferFacilitator::SendMessage (const TransferSession::MessageTypeData msgTypeData,
95
+ System::PacketBufferHandle & msgBuf)
96
96
{
97
97
VerifyOrReturnError (mExchange , CHIP_ERROR_INCORRECT_STATE);
98
98
@@ -138,7 +138,6 @@ CHIP_ERROR AsyncTransferFacilitator::OnMessageReceived(Messaging::ExchangeContex
138
138
// This should notify the tranfer object to abort transfer so it can send a status report across the exchange
139
139
// when we call HandleNextOutputEvents below.
140
140
mTransfer .AbortTransfer (AsyncResponder::GetBdxStatusCodeFromChipError (err));
141
-
142
141
}
143
142
else if (!payloadHeader.HasMessageType (MessageType::BlockAckEOF))
144
143
{
@@ -171,7 +170,7 @@ CHIP_ERROR AsyncResponder::PrepareForTransfer(System::Layer * layer, Messaging::
171
170
VerifyOrReturnError (!mExchange , CHIP_ERROR_INCORRECT_STATE);
172
171
173
172
mSystemLayer = layer;
174
- mTimeout = timeout;
173
+ mTimeout = timeout;
175
174
176
175
ReturnErrorOnFailure (mTransfer .WaitForTransfer (role, xferControlOpts, maxBlockSize, mTimeout ));
177
176
@@ -195,7 +194,8 @@ void AsyncResponder::NotifyEventHandled(TransferSession::OutputEvent & event, CH
195
194
return ;
196
195
}
197
196
198
- // If there was an error handling the output event, this should notify the tranfer object to abort transfer so it can send a status report
197
+ // If there was an error handling the output event, this should notify the tranfer object to abort transfer so it can send a
198
+ // status report
199
199
// across the exchange when we call HandleNextOutputEvents below.
200
200
if (error != CHIP_NO_ERROR)
201
201
{
0 commit comments