aboutsummaryrefslogtreecommitdiffstats
path: root/sercp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sercp.c')
-rw-r--r--sercp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sercp.c b/sercp.c
index 9364abc..9ca8d31 100644
--- a/sercp.c
+++ b/sercp.c
@@ -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");