fix progress meter
This commit is contained in:
parent
3621c0dcd4
commit
98fb0bfa64
|
@ -36,7 +36,7 @@ def stream(filename):
|
||||||
s.write(l + b"\n") # Send g-code block to grbl
|
s.write(l + b"\n") # Send g-code block to grbl
|
||||||
grbl_out = s.readline() # Wait for grbl response with carriage return
|
grbl_out = s.readline() # Wait for grbl response with carriage return
|
||||||
# print('Receive: ' + str(grbl_out).strip())
|
# print('Receive: ' + str(grbl_out).strip())
|
||||||
percent = int(n/len_cmds)
|
percent = int(n/len_cmds*100)
|
||||||
if not int(n/len_cmds) % 5:
|
if not int(n/len_cmds) % 5:
|
||||||
if not percent in progress:
|
if not percent in progress:
|
||||||
print(str(percent) + "%")
|
print(str(percent) + "%")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user