Fixed a bug causing feed rate adjustment to not work while printing

This commit is contained in:
Gina Häußge 2015-03-04 20:38:49 +01:00
parent c7cccb2ce5
commit edd560f5a4

View file

@ -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":