Browse Source

update lib/ymodem.c

Signed-off-by: surenyi <surenyi82@163.com>
master
surenyi 5 years ago
parent
commit
d8ce5d5d85
  1. 16
      lib/ymodem.c

16
lib/ymodem.c

@ -334,14 +334,14 @@ retry:
/* eot */ /* eot */
if (pkt_size == 0) { if (pkt_size == 0) {
if (rx->eot == 1) { switch (rx->eot) {
put_byte(uart, NAK); case 1:
continue; put_byte(uart, NAK);
} break;
case 2:
if (rx->eot == 2) { put_byte(uart, ACK);
put_byte(uart, ACK); put_byte(uart, WANTCRC);
put_byte(uart, WANTCRC); break;
} }
} }
} }

Loading…
Cancel
Save