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

Co-authored-by: KLASSENTS <klassen@elron.tech>
Co-committed-by: KLASSENTS <klassen@elron.tech>
This commit is contained in:
KLASSENTS 2025-01-14 11:51:30 +03:00 committed by klassents
parent b88ba38dcd
commit 67759c6439

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