Skip to content
Snippets Groups Projects
Commit 202d996f authored by rswindell's avatar rswindell
Browse files

Send "multiple CAN abort sequence" when a bad Ymodem-G block has been received

as required by the YMODEM-g spec and pointed out by Rick Parrish (Ree).
parent 0157386d
No related branches found
No related tags found
No related merge requests found
......@@ -1280,10 +1280,7 @@ static int receive_files(char** fname_list, int fnames)
break;
}
if(mode&GMODE)
return(-1);
if(++errors>xm.max_errors) {
if(++errors>xm.max_errors || (mode&GMODE)) {
lprintf(LOG_ERR,"Too many errors (%u)",errors);
xmodem_cancel(&xm);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment