From 6a1300e8d40a2b7e1637a505de254e1413c46ce1 Mon Sep 17 00:00:00 2001 From: Obijuan Date: Mon, 18 Mar 2024 22:16:13 +0100 Subject: [PATCH] apio upload: Fixed a bug when uploading with tinyfpga --- apio/managers/scons.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apio/managers/scons.py b/apio/managers/scons.py index 76b2858a..2a9129dc 100644 --- a/apio/managers/scons.py +++ b/apio/managers/scons.py @@ -1010,8 +1010,8 @@ def _on_stderr(line: str): # -- Match outputs like these " 97%|█████████▋| " # -- Regular expression remainder: # -- \s --> Match one blank space - # -- \d{2} one or two decimal digits - pattern_tinyprog = r"\s\d{2}%\|█*\s+\|\s" + # -- \d{1,3} one, two or three decimal digits + pattern_tinyprog = r"\s\d{1,3}%\|█*" # -- Calculate if there is a match match_tinyprog = re.search(pattern_tinyprog, line)