From edd560f5a46152ec651763dec363c0db5b3e22b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 4 Mar 2015 20:38:49 +0100 Subject: [PATCH] Fixed a bug causing feed rate adjustment to not work while printing --- src/octoprint/server/api/printer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/octoprint/server/api/printer.py b/src/octoprint/server/api/printer.py index 7299ad63..aec0569b 100644 --- a/src/octoprint/server/api/printer.py +++ b/src/octoprint/server/api/printer.py @@ -223,10 +223,6 @@ def printerBedState(): @api.route("/printer/printhead", methods=["POST"]) @restricted_access def printerPrintheadCommand(): - if not printer.is_operational() or printer.is_printing(): - # do not jog when a print job is running or we don't have a connection - return make_response("Printer is not operational or currently printing", 409) - valid_commands = { "jog": [], "home": ["axes"], @@ -236,6 +232,10 @@ def printerPrintheadCommand(): if response is not None: return response + if not printer.is_operational() or (printer.is_printing() and command != "feedrate"): + # do not jog when a print job is running or we don't have a connection + return make_response("Printer is not operational or currently printing", 409) + valid_axes = ["x", "y", "z"] ##~~ jog command if command == "jog":