Instead of not sending the line at all, just send a get temp command

This commit is contained in:
Jaime van Kessel 2017-03-23 20:13:13 +01:00
parent 645e3e8dfe
commit e30e2a8018

View file

@ -560,10 +560,9 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
line = line[:line.find(";")]
line = line.strip()
# Don't send empty lines
# Don't send empty lines. But we do have to send something, so send m105 instead.
if line == "":
self._gcode_position += 1
return
line = "M105"
try:
if line == "M0" or line == "M1":