diff --git a/stream.py b/stream.py index df6d115..6654d78 100755 --- a/stream.py +++ b/stream.py @@ -36,7 +36,7 @@ def stream(filename): s.write(l + b"\n") # Send g-code block to grbl grbl_out = s.readline() # Wait for grbl response with carriage return # 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 percent in progress: print(str(percent) + "%")