Add support for client cancel XModem
This commit is contained in:
parent
a2b2c5d184
commit
8fcefce793
1 changed files with 2 additions and 0 deletions
|
|
@ -115,6 +115,8 @@ xmodem_send(
|
||||||
|
|
||||||
if (recv_char == XMODEM_ACK) {
|
if (recv_char == XMODEM_ACK) {
|
||||||
break;
|
break;
|
||||||
|
} else if (recv_char == XMODEM_CAN) {
|
||||||
|
return XMODEM_ERR_CANCEL;
|
||||||
}
|
}
|
||||||
|
|
||||||
retries++;
|
retries++;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue