fix progress meter again

This commit is contained in:
iou1name 2018-03-29 13:12:30 -04:00
parent 98fb0bfa64
commit 802fa4ff45

View File

@ -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)