Fixed a bug causing feed rate adjustment to not work while printing
This commit is contained in:
parent
c7cccb2ce5
commit
edd560f5a4
1 changed files with 4 additions and 4 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Reference in a new issue