Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/misoc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 967f03aeabbd
Choose a base ref
...
head repository: m-labs/misoc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0db54fa6c0f6
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Nov 10, 2016

  1. flterm: flush stdout when printing progressbar.

    whitequark committed Nov 10, 2016
    Copy the full SHA
    b70c484 View commit details
  2. flterm: nicer progress bar.

    whitequark committed Nov 10, 2016
    Copy the full SHA
    0db54fa View commit details
Showing with 4 additions and 1 deletion.
  1. +4 −1 misoc/tools/flterm.py
5 changes: 4 additions & 1 deletion misoc/tools/flterm.py
Original file line number Diff line number Diff line change
@@ -163,7 +163,10 @@ async def upload(self, filename, address):
length = len(data)
start = time.time()
while len(data):
print("{}%\r".format(100*position//length), end="")
sys.stdout.write("|{}>{}| {}%\r".format('=' * (20*position//length),
' ' * (20-20*position//length),
100*position//length))
sys.stdout.flush()
frame = SFLFrame()
frame_data = data[:251]
frame.cmd = sfl_cmd_load