Обновление статуса загрузки прошивки в ArduinoIDE #2
@ -77,7 +77,7 @@ DEFAULT_BAUDRATE = 230400
|
|||||||
|
|
||||||
def createParser():
|
def createParser():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
prog='bootloader.py',
|
prog='elbear_uploader.py',
|
||||||
description='''Script for writing to external flash on SPIFI interface'''
|
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)
|
# printProgressBar(progress, 100, prefix = 'Upload:', suffix = 'Complete', length = 50)
|
||||||
if time.time() > timestart + resolution:
|
if time.time() > timestart + resolution:
|
||||||
timestart += resolution
|
timestart += resolution
|
||||||
print(f'Uploaded {int(progress)}%')
|
print(f'Uploaded {int(progress)}%', flush=True)
|
||||||
if progress == 100:
|
if progress == 100:
|
||||||
all_showed = True
|
all_showed = True
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user