Commit f57eb1d4 authored by Guillaume Seguin's avatar Guillaume Seguin

Only flush TCP connections, not serial ones (fix #402)

parent 686cb224
......@@ -523,7 +523,7 @@ class printcore():
except: pass
try:
self.printer.write(str(command + "\n"))
self.printer.flush()
if self.printer_tcp: self.printer.flush()
self.writefailures = 0
except socket.error as e:
print "Can't write to printer (disconnected?) (Socket error {0}): {1}".format(e.errno, e.strerror)
......
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