From af5179ea6bffaf66fa64eee4ae5bd544b3669634 Mon Sep 17 00:00:00 2001 From: Daron Chabot Date: Wed, 8 Jan 2025 15:59:03 -0800 Subject: [PATCH] DBG: print bitfile blks in-place --- badger/tests/spi_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/badger/tests/spi_test.py b/badger/tests/spi_test.py index c3fd7199e..5532e8ccc 100755 --- a/badger/tests/spi_test.py +++ b/badger/tests/spi_test.py @@ -428,12 +428,14 @@ def remote_program(s, file_name, ad, size): f = open(file_name, 'rb') # assume that '.bin' file size is always less than whole pages for ba in reversed(range(start_p, stop_p)): - print("block %d" % ba) + print("block %d\r" % ba, end='', flush=True) f.seek((ba << 8) - ad) bd = f.read(PAGE) while not (write_enable(s, True)): time.sleep(WAIT) page_program(s, ba << 8, bd) + else: + print('') f.close() return