Only send uppercase g-code via custom commands

Because most printers don't understand anything other than uppercase.

Fixes #4178.
This commit is contained in:
Ghostkeeper 2018-09-28 11:53:03 +02:00
parent f54a85688f
commit 4a4b096052
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -66,7 +66,7 @@ class GenericOutputController(PrinterOutputController):
self._output_device.sendCommand("G28 Z")
def sendRawCommand(self, printer: "PrinterOutputModel", command: str):
self._output_device.sendCommand(command)
self._output_device.sendCommand(command.upper()) #Most printers only understand uppercase g-code commands.
def setJobState(self, job: "PrintJobOutputModel", state: str):
if state == "pause":