Files
u-boot/tools
Pali Rohár 00a1deed1c tools: kwboot: Fix kwboot_xm_sendblock() function when kwboot_tty_recv() fails
When kwboot_tty_recv() fails or times out, it does not set the `c`
variable to NAK. The variable is then compared, while it holds either
an undefined value or a value from previous iteration. Set `c` to NAK so
that the other side will try to resend current block, and remove the
now unnecessary break.

In other failure cases return immediately.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
2021-10-01 11:07:13 +02:00
..
2021-09-24 14:30:46 -04:00
2021-09-25 09:46:15 -06:00
2021-09-02 11:19:58 -04:00
2019-07-29 00:20:31 +02:00
2021-01-13 02:38:00 +01:00
2019-11-04 18:15:32 -07:00