fix progress meter again
This commit is contained in:
parent
98fb0bfa64
commit
802fa4ff45
|
@ -37,7 +37,7 @@ def stream(filename):
|
|||
grbl_out = s.readline() # Wait for grbl response with carriage return
|
||||
# print('Receive: ' + str(grbl_out).strip())
|
||||
percent = int(n/len_cmds*100)
|
||||
if not int(n/len_cmds) % 5:
|
||||
if not percent % 5:
|
||||
if not percent in progress:
|
||||
print(str(percent) + "%")
|
||||
progress.append(percent)
|
||||
|
|
Loading…
Reference in New Issue
Block a user