Verified Commit 207f653e authored by Grégor JOUET's avatar Grégor JOUET 🔧
Browse files

fix cancel

parent 9ab2778e
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -625,7 +625,6 @@ def action_printer(printer_id, action):
    if action == "toggle":
        p.toggle_pause()
    elif action == "cancel":
        add_request_event(p,"Canceled print", None)
        p.cancel_print()
    elif action == "cycle":
        p.cycle_print()
+1 −0
Original line number Diff line number Diff line
@@ -443,6 +443,7 @@ class OctoPrinter(PrinterBase):
            "/api/printer/printhead",
            data={"command": "jog", "y": 100, "absolute": False},
        )  # move nozzle up and bed forward
        add_request_event(self.printer_obj,"Canceled print", None)
        self.reset_current_print(RESET_CANCEL)

    def toggle_pause(self):