Browse Source

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

Jaime van Kessel 8 years ago
parent
commit
e30e2a8018
1 changed files with 2 additions and 3 deletions
  1. 2 3
      plugins/USBPrinting/USBPrinterOutputDevice.py

+ 2 - 3
plugins/USBPrinting/USBPrinterOutputDevice.py

@@ -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":