diff --git a/sufst-openlogger_controller/buffer.cpp b/sufst-openlogger_controller/buffer.cpp index 3a7ebe2787f54d75c8d0b70e64847a7beb574bfa..7148af5cead03a3f29a97e6562ba76c3f5bdb473 100644 --- a/sufst-openlogger_controller/buffer.cpp +++ b/sufst-openlogger_controller/buffer.cpp @@ -67,7 +67,7 @@ void cirBufferWriteBytes(cirBuffer_handle cirBuff, void *src, uint16_t len) uint16_t usedBytes = cirBufferAvailable(cirBuff); - if ((usedBytes + len) <= cirBuff->capacity) { + if ((usedBytes + len) > cirBuff->capacity) { cirBuff->full = 1; }