Skip to content
Snippets Groups Projects
Commit 218f9815 authored by rswindell's avatar rswindell
Browse files

Handle the fact that zmodem_send_file() returns TRUE on skipped files now.

parent 3163189a
No related branches found
No related tags found
No related merge requests found
......@@ -896,8 +896,8 @@ static int send_files(char** fname, uint fnames)
lprintf(LOG_DEBUG,"Updating DSZLOG: %s", dszlog);
fprintf(logfp,"%c %7lu %5u bps %6lu cps %3u errors %5u %4u "
"%s -1\n"
,success ? (mode&ZMODEM ? 'z':'S')
: (mode&ZMODEM && zm.file_skipped) ? 's'
,(mode&ZMODEM && zm.file_skipped) ? 's'
: success ? (mode&ZMODEM ? 'z':'S')
: 'E'
,sent_bytes
,115200 /* baud */
......
......@@ -1588,7 +1588,7 @@ int zmodem_send_from(zmodem_t* zm, FILE* fp, uint32_t pos, uint32_t* sent)
}
/*
* send a file; returns true when session is successful.
* send a file; returns true when session is successful. (or file is skipped)
*/
BOOL zmodem_send_file(zmodem_t* zm, char* fname, FILE* fp, BOOL request_init, time_t* start, uint32_t* sent)
......
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