Commit 0a5aceb0 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Fix buffer bug

parent 73989132
......@@ -35,7 +35,7 @@ buffer_empty(void)
uint8_t is_empty;
ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
is_empty = _buf_head != _buf_tail;
is_empty = (_buf_head == _buf_tail);
}
return is_empty;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment