Skip to content

Commit

Permalink
apio upload: Fixed a bug when uploading with iceprog
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Mar 17, 2024
1 parent e226a2e commit ceca262
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"justMyCode": true,
//-- Change to the folder with the example to test
//-- Testing the Alhanbra-II board
"cwd": "${workspaceFolder}/test-examples/Alhambra-II/ledon"
"cwd": "${workspaceFolder}/test-examples/Alhambra-II/temp-ledon"
},
{
"name": "Upload (TinyFPGA)",
Expand Down
4 changes: 2 additions & 2 deletions apio/managers/scons.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,14 +1011,14 @@ def _on_stderr(line: str):
# -- Regular expression remainder:
# -- \s --> Match one blank space
# -- \d{2} one or two decimal digits
pattern_tinyprog = r"\s\d{2}%|█*\s+|\s"
pattern_tinyprog = r"\s\d{2}%\|█*\s+\|\s"

# -- Calculate if there is a match
match_tinyprog = re.search(pattern_tinyprog, line)

# -- Math all the progress bar lines except the
# -- initial one (when it is 0%)
if match_tinyprog and " 0%|" not in line:
if match_tinyprog: # and " 0%|" not in line:
# -- Delete the previous line
print(CURSOR_UP + ERASE_LINE, end="")
# ------- tinyprog output processing END
Expand Down

0 comments on commit ceca262

Please sign in to comment.