fix progress meter

This commit is contained in:
iou1name 2018-03-29 11:13:14 -04:00
parent 3621c0dcd4
commit 98fb0bfa64

View File

@ -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) + "%")