Skip to content

Commit fb17948

Browse files
committed
Make minor improvements to CLI output
1 parent 0ecfa0f commit fb17948

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/mcbootflash/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,10 @@ def main(args: None | argparse.Namespace = None) -> None:
118118
timeout=args.timeout,
119119
)
120120
bootattrs = mcbf.get_boot_attrs(connection)
121-
_logger.info("Connected")
122121
total_bytes, chunks = mcbf.chunked(args.hexfile, bootattrs)
123-
_logger.debug("Erasing program area...")
122+
_logger.info("Erasing program area...")
124123
mcbf.erase_flash(connection, bootattrs.memory_range, bootattrs.erase_size)
125-
_logger.info(f"Flashing {args.hexfile}")
124+
_logger.info(f"Flashing {args.hexfile}...")
126125
flash(
127126
connection=connection,
128127
chunks=chunks,
@@ -134,6 +133,7 @@ def main(args: None | argparse.Namespace = None) -> None:
134133

135134
if args.reset:
136135
mcbf.reset(connection)
136+
_logger.info("Device reset")
137137
except Exception:
138138
_logger.exception("An error occurred:")
139139

0 commit comments

Comments
 (0)