Commit 93d258f6 authored by Guillaume Seguin's avatar Guillaume Seguin

Whiespace cleanup + correctly decrease wait time in send and send_now

parent 61ba81bc
......@@ -373,7 +373,7 @@ class printcore():
self.lineno += 1
while wait > 0 and self.printer and self.printing and not self.clear:
time.sleep(0.001)
wait -= 1
wait -= 0.001
else:
print "Not connected to printer."
......@@ -393,7 +393,7 @@ class printcore():
self._send(command)
while (wait > 0) and self.printer and self.printing and not self.clear:
time.sleep(0.001)
wait -= 1
wait -= 0.001
else:
print "Not connected to printer."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment