Kedar Patil - 2019-07-01
IOUtils_CircularBufferRx.c
@@ -158,9 +158,7 @@ const portBASE_TYPE xMaxAttempts = 2;

                if( pxCircularBuffer->usNextReadIndex <= pxCircularBuffer->usNextWriteIndex )
                {

-                       /* How many bytes are available between the read and write
-                       indexes? */
-                       xBytesAvailable = ( pxCircularBuffer->usNextWriteIndex - pxCircularBuffer->usNextReadIndex );
+                       xBytesAvailable = pxCircularBuffer->usCharCount;
                }
                else
                {

The following change seems to work for me.

 

Last edit: Kedar Patil 2019-07-01