mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-07 14:44:32 +02:00
freertos: Synchronize xStreamBufferSend() to v10.4.3
This commit synchronizes xStreamBufferSend() with upstream v10.4.3.
This commit is contained in:
@@ -588,14 +588,13 @@ size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
|
|||||||
size_t xReturn, xSpace = 0;
|
size_t xReturn, xSpace = 0;
|
||||||
size_t xRequiredSpace = xDataLengthBytes;
|
size_t xRequiredSpace = xDataLengthBytes;
|
||||||
TimeOut_t xTimeOut;
|
TimeOut_t xTimeOut;
|
||||||
size_t xMaxReportedSpace = 0;
|
|
||||||
|
|
||||||
configASSERT( pvTxData );
|
|
||||||
configASSERT( pxStreamBuffer );
|
|
||||||
|
|
||||||
/* The maximum amount of space a stream buffer will ever report is its length
|
/* The maximum amount of space a stream buffer will ever report is its length
|
||||||
* minus 1. */
|
* minus 1. */
|
||||||
xMaxReportedSpace = pxStreamBuffer->xLength - ( size_t ) 1;
|
const size_t xMaxReportedSpace = pxStreamBuffer->xLength - ( size_t ) 1;
|
||||||
|
|
||||||
|
configASSERT( pvTxData );
|
||||||
|
configASSERT( pxStreamBuffer );
|
||||||
|
|
||||||
/* This send function is used to write to both message buffers and stream
|
/* This send function is used to write to both message buffers and stream
|
||||||
* buffers. If this is a message buffer then the space needed must be
|
* buffers. If this is a message buffer then the space needed must be
|
||||||
|
Reference in New Issue
Block a user