From d91d6ab8e7d6477bbd72c94f23512209728bfdc1 Mon Sep 17 00:00:00 2001 From: slederer Date: Sun, 13 Apr 2025 23:08:55 +0200 Subject: [PATCH] stdlib: handle unix line endings correctly serload: longer pause between sending files --- lib/stdlib.pas | 2 +- utils/serload.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/stdlib.pas b/lib/stdlib.pas index a68848c..8ad45d9 100644 --- a/lib/stdlib.pas +++ b/lib/stdlib.pas @@ -1352,7 +1352,7 @@ var aChar:char; begin repeat aChar := freadchar(aFile); - until (aChar = #13) or eof(aFile); + until eoln(aFile); (* eoln checks for cr, lf and eof *) (* If it is a disk file, try to read the diff --git a/utils/serload.py b/utils/serload.py index eb16a6a..6ccc4a6 100644 --- a/utils/serload.py +++ b/utils/serload.py @@ -296,7 +296,7 @@ def mput(filenames, ser): resp = ser.read_until() - time.sleep(0.5) + time.sleep(2) if __name__ == "__main__":