nrfutil remove progressbar since it does not work with Arduiono log

This commit is contained in:
hathach committed 2017-01-23 14:52:09 +07:00
1 parent 511384fdf4
commit e82c4e9a77
3 files changed
+7 -8

No files matched your search

Binary file not shown.
+6 -7
View File
@@ -244,13 +244,12 @@ global_bar = None
def update_progress(progress=0, done=False, log_message=""):
del done, log_message # Unused parameters
global global_bar
if global_bar is None:
with click.progressbar(length=100) as bar:
global_bar = bar
global_bar.update(max(1, progress))
#global global_bar
#if global_bar is None:
# with click.progressbar(length=100) as bar:
# global_bar = bar
#global_bar.update(max(1, progress))
click.echo('#', nl=False)
@dfu.command(short_help="Program a device with bootloader that support serial DFU")
+1 -1
View File
@@ -212,7 +212,7 @@ class Dfu(object):
self.dfu_transport.send_activate_firmware()
end_time = time()
logger.info("DFU upgrade took {0}s".format(end_time - start_time))
logger.info("\nDFU upgrade took {0}s".format(end_time - start_time))
self.dfu_transport.close()