diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-12-31 05:47:11 +0100 |
---|---|---|
committer | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-12-31 05:47:11 +0100 |
commit | b9ae2e1f9b359e2bd1ad13a4f29bf8aab2252fc2 (patch) | |
tree | b008897cc70969b1d463b37b64a0343b35d8324e | |
parent | de51f97bc5df704f481a0dcb2f8d3cf987cd6eb5 (diff) | |
download | ldd3-b9ae2e1f9b359e2bd1ad13a4f29bf8aab2252fc2.tar.gz |
tty: tiny_tty: Use tty_buffer_request_room instead of tty->flip.count
-rw-r--r-- | tty/tiny_tty.c | 2 |
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); } |