deployment handler
This commit is contained in:
@ -192,6 +192,8 @@ ReturnValue_t CspComIF::cspTransfer(uint8_t cspAddress, uint8_t cspPort,
|
||||
memcpy(replyBuffer, reply->data, reply->length);
|
||||
expectedSize = expectedSize - reply->length;
|
||||
bytesRead += reply->length;
|
||||
sif::debug << "CspComIF::cspTransfer: Received csp packet has data field with length "
|
||||
<< reply->length << std::endl;
|
||||
csp_buffer_free(reply);
|
||||
while (expectedSize > 0) {
|
||||
reply = csp_read(conn, timeout_ms);
|
||||
@ -209,6 +211,8 @@ ReturnValue_t CspComIF::cspTransfer(uint8_t cspAddress, uint8_t cspPort,
|
||||
memcpy(replyBuffer + bytesRead, reply->data, reply->length);
|
||||
expectedSize = expectedSize - reply->length;
|
||||
bytesRead += reply->length;
|
||||
sif::debug << "CspComIF::cspTransfer: Received csp packet has data field with length "
|
||||
<< reply->length << std::endl;
|
||||
csp_buffer_free(reply);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user