aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Vymetálek <pavel@vym.cz>2019-03-09 14:42:20 +0100
committerPavel Vymetálek <pavel@vym.cz>2019-03-09 14:42:20 +0100
commitcde51f8e3d769ea26870a5fed5c0f60c9343a9c4 (patch)
treed384982dd7c7d5b74899815e41d88795b7cfc825
parent33e4233b0f7a6f7c1c3b5f17b0ae6fa4f882457b (diff)
downloadsercp-pc-cde51f8e3d769ea26870a5fed5c0f60c9343a9c4.tar.gz
Zrušeno čekání po posledním blokuv0.2
-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");