summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/chargen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/chargen.c b/common/chargen.c
index 64cd138924..ae93ba1c42 100644
--- a/common/chargen.c
+++ b/common/chargen.c
@@ -55,7 +55,7 @@ static int command_chargen(int argc, char **argv)
while (uart_getc() != 'x') {
timestamp_t current_time;
- while (uart_buffer_full()) {
+ while (!uart_buffer_room()) {
/*
* Let's sleep enough time to drain half of TX
* buffer.