Skip to content

Commit 59983c0

Browse files
send_gcode: print progress in percent
1 parent 1a3b65f commit 59983c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def adler32_hash():
7777
end = min(gcode_len, ptr+blocksize)
7878
block = gcode[ptr:end]
7979
if print_progress:
80-
print(f'# block: {ptr}-{end} of {gcode_len}, block-size: {len(block)}')
80+
print(f'# progress: {100*ptr/gcode_len}%, block: {ptr}-{end} of {gcode_len}, block-size: {len(block)}')
8181
if print_blocks:
8282
print(block)
8383

0 commit comments

Comments
 (0)