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 */
if (pkt_size == 0) {
if (rx->eot == 1) {
put_byte(uart, NAK);
continue;
}
if (rx->eot == 2) {
put_byte(uart, ACK);
put_byte(uart, WANTCRC);
switch (rx->eot) {
case 1:
put_byte(uart, NAK);
break;
case 2:
put_byte(uart, ACK);
put_byte(uart, WANTCRC);
break;
}
}
}

Loading…
Cancel
Save