Обновление статуса загрузки прошивки в ArduinoIDE

Co-authored-by: KLASSENTS <klassen@elron.tech>
Co-committed-by: KLASSENTS <klassen@elron.tech>
This commit is contained in:
klassents authored and klassents committed 2025-01-14 11:51:30 +03:00
1 parent b88ba38dcd
commit d8e6289a08
1 file changed
+2 -2
+2 -2
View File
@@ -77,7 +77,7 @@ DEFAULT_BAUDRATE = 230400
def createParser():
parser = argparse.ArgumentParser(
prog='bootloader.py',
prog='elbear_uploader.py',
description='''Script for writing to external flash on SPIFI interface'''
)
@@ -235,7 +235,7 @@ if namespace.hexpath:
# printProgressBar(progress, 100, prefix = 'Upload:', suffix = 'Complete', length = 50)
if time.time() > timestart + resolution:
timestart += resolution
print(f'Uploaded {int(progress)}%')
print(f'Uploaded {int(progress)}%', flush=True)
if progress == 100:
all_showed = True