summaryrefslogtreecommitdiffstats
path: root/tty
diff options
context:
space:
mode:
Diffstat (limited to 'tty')
-rw-r--r--tty/tiny_tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty/tiny_tty.c b/tty/tiny_tty.c
index 8cef1e6..0910a87 100644
--- a/tty/tiny_tty.c
+++ b/tty/tiny_tty.c
@@ -75,7 +75,7 @@ static void tiny_timer(unsigned long timer_data)
/* send the data to the tty layer for users to read. This doesn't
* actually push the data through unless tty->low_latency is set */
for (i = 0; i < data_size; ++i) {
- if (tty->flip.count >= TTY_FLIPBUF_SIZE)
+ if (!tty_buffer_request_room(tty, 1))
tty_flip_buffer_push(tty);
tty_insert_flip_char(tty, data[i], TTY_NORMAL);
}