diff options
author | Mary Ruthven <mruthven@chromium.org> | 2022-07-29 13:41:08 -0500 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-08-05 01:47:30 +0000 |
commit | eed23440af3b263f07e4489291af0440328430a4 (patch) | |
tree | 8624f0d759dd4f0623d06e966dc13105ee991a6b | |
parent | e534cfcdb6dfbf258b59d89e8aa110b178dbaac2 (diff) | |
download | chrome-ec-eed23440af3b263f07e4489291af0440328430a4.tar.gz |
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 <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3805823
Commit-Queue: Andrey Pronin <apronin@chromium.org>
Reviewed-by: Andrey Pronin <apronin@chromium.org>
-rw-r--r-- | common/chargen.c | 2 |
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. |