`ringbuffer_add()` returns an `unsigned int` for the number of characters that were added., so this `if` is always wrong.