Fixed a typo breaking slicing altogether
This commit is contained in:
parent
b7a21dd322
commit
776e6aa498
1 changed files with 1 additions and 1 deletions
|
|
@ -311,7 +311,7 @@ def gcodeFileCommand(filename, target):
|
|||
if not octoprint.filemanager.valid_file_type(filename, type="stl"):
|
||||
return make_response("Cannot slice {filename}, not an STL file".format(**locals()), 415)
|
||||
|
||||
if slicer_instance.get_slicer_properties()["same_device"] and (printer.isPrinting or printer.isPaused()):
|
||||
if slicer_instance.get_slicer_properties()["same_device"] and (printer.isPrinting() or printer.isPaused()):
|
||||
# slicer runs on same device as OctoPrint, slicing while printing is hence disabled
|
||||
return make_response("Cannot slice on {slicer} while printing due to performance reasons".format(**locals()), 409)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue