Browse Source

update lib/ymodem.c

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

10
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) {
case 1:
put_byte(uart, NAK); put_byte(uart, NAK);
continue; 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