mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 00:07:51 -06:00
Send the correct action name when using local network
This commit is contained in:
parent
483e343b38
commit
6210135b92
3 changed files with 9 additions and 2 deletions
|
@ -7,6 +7,7 @@ MYPY = False
|
|||
if MYPY:
|
||||
from cura.PrinterOutput.Models.PrintJobOutputModel import PrintJobOutputModel
|
||||
|
||||
|
||||
class ClusterUM3PrinterOutputController(PrinterOutputController):
|
||||
def __init__(self, output_device):
|
||||
super().__init__(output_device)
|
||||
|
@ -16,5 +17,4 @@ class ClusterUM3PrinterOutputController(PrinterOutputController):
|
|||
self.can_send_raw_gcode = False
|
||||
|
||||
def setJobState(self, job: "PrintJobOutputModel", state: str):
|
||||
data = "{\"action\": \"%s\"}" % state
|
||||
self._output_device.put("print_jobs/%s/action" % job.key, data, on_finished=None)
|
||||
self._output_device.setJobState(job.key, state)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue