Skip to content
Snippets Groups Projects
Commit 20a00308 authored by nrs1g15's avatar nrs1g15
Browse files

Fixed full issue

parent 55a0cd12
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ void cirBufferWriteBytes(cirBuffer_handle cirBuff, void *src, uint16_t len) ...@@ -67,7 +67,7 @@ void cirBufferWriteBytes(cirBuffer_handle cirBuff, void *src, uint16_t len)
uint16_t usedBytes = cirBufferAvailable(cirBuff); uint16_t usedBytes = cirBufferAvailable(cirBuff);
if ((usedBytes + len) <= cirBuff->capacity) { if ((usedBytes + len) > cirBuff->capacity) {
cirBuff->full = 1; cirBuff->full = 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment