mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 08:17:49 -06:00
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:
parent
f54a85688f
commit
4a4b096052
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class GenericOutputController(PrinterOutputController):
|
||||||
self._output_device.sendCommand("G28 Z")
|
self._output_device.sendCommand("G28 Z")
|
||||||
|
|
||||||
def sendRawCommand(self, printer: "PrinterOutputModel", command: str):
|
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):
|
def setJobState(self, job: "PrintJobOutputModel", state: str):
|
||||||
if state == "pause":
|
if state == "pause":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue