summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/cortex-m/panic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/cortex-m/panic.c b/core/cortex-m/panic.c
index 3099887dcb..1663d8fd93 100644
--- a/core/cortex-m/panic.c
+++ b/core/cortex-m/panic.c
@@ -35,8 +35,7 @@ void panic_putc(int ch)
if (ch == '\n')
panic_putc('\r');
uart_write_char(ch);
- while (uart_tx_ready())
- ;
+ uart_tx_flush();
}