aboutsummaryrefslogtreecommitdiffstats
path: root/com32/sysdump/be_ymodem.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/sysdump/be_ymodem.c')
-rw-r--r--com32/sysdump/be_ymodem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/sysdump/be_ymodem.c b/com32/sysdump/be_ymodem.c
index fa2cc602..9d6c9011 100644
--- a/com32/sysdump/be_ymodem.c
+++ b/com32/sysdump/be_ymodem.c
@@ -89,9 +89,9 @@ static void send_ack(struct ymodem_state *ym, const uint8_t *blk, size_t bytes)
{
uint8_t ack_buf;
- serial_write(&ym->serial, blk, bytes);
-
do {
+ serial_write(&ym->serial, blk, bytes);
+
do {
serial_read(&ym->serial, &ack_buf, 1);
} while (ack_buf != ACK && ack_buf != NAK);