diff options
-rw-r--r-- | sercp.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -591,9 +591,10 @@ void sercpSend(void) { } DoProgress(overall_sent, st.st_size, PROGRESS_PERCENT); } - sleep_ms(wait_ms); - file_len -= len; + if (file_len > 0) { + sleep_ms(wait_ms); + } } if (is_continue) { printf("\nFile sent...\n"); |