Skip to content
Snippets Groups Projects
Commit 68fdc99d authored by rswindell's avatar rswindell
Browse files

Remove unnecessary delay at end of ymodem session.

parent 83bad49f
No related branches found
No related tags found
No related merge requests found
......@@ -808,7 +808,7 @@ void send_files(char** fname, uint fnames)
block_len=strlen(block)+1+i;
for(errors=0;errors<xm.max_errors;errors++) {
xmodem_put_block(&xm, block, block_len <=128 ? 128:1024, 0 /* block_num */);
if(/* mode&GMODE || */xmodem_get_ack(&xm,1,0))
if(xmodem_get_ack(&xm,1,0))
break;
}
if(errors==xm.max_errors) {
......@@ -1007,7 +1007,7 @@ void send_files(char** fname, uint fnames)
memset(block,0,128); /* send short block for terminator */
xmodem_put_block(&xm, block, 128 /* block_size */, 0 /* block_num */);
SLEEP(1000);
// SLEEP(1000);
if(!xmodem_get_ack(&xm,6,0)) {
newline();
fprintf(statfp,"Failed to receive ACK after terminating block\n");
......
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