mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-29 04:18:54 +03:00
Set the progress and message callbacks by default
Also bump verbosity to 2 as a starting point - this is development right now.
This commit is contained in:
@@ -188,3 +188,8 @@ def progress_callback(percent: int, etime: float, hdr: str, finish: int):
|
||||
print(f"{prog_hdr} {percent:3d} %", end='\r', file=sys.stderr, flush=True)
|
||||
if (percent == 100):
|
||||
print("", file=sys.stderr)
|
||||
|
||||
ad.set_msg_callback(msg_callback)
|
||||
ad.set_progress_callback(progress_callback)
|
||||
ad.cvar.verbose=2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user