From eed23440af3b263f07e4489291af0440328430a4 Mon Sep 17 00:00:00 2001 From: Mary Ruthven Date: Fri, 29 Jul 2022 13:41:08 -0500 Subject: chargen: update for cr50 branch The cr50 branch doesn't have uart_buffer_full. It has uart_buffer_room. Update chargen to use uart_buffer_room instead of uart_buffer_full, so it'll work with cr50. BUG=b:240718978 TEST=none Change-Id: I5f9a5d8a3cdc15db7a7ca66d54f7997dce165fd9 Signed-off-by: Mary Ruthven Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3805823 Commit-Queue: Andrey Pronin Reviewed-by: Andrey Pronin --- common/chargen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.1