deployment handler

This commit is contained in:
2021-02-16 15:32:24 +01:00
parent e116e0dc64
commit c9947bbccc
14 changed files with 413 additions and 27 deletions

View File

@ -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);
}