From 776e6aa4984490dabc9ba03b81573a9d9b9a6822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 21 Oct 2014 15:03:36 +0200 Subject: [PATCH] Fixed a typo breaking slicing altogether --- src/octoprint/server/api/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/server/api/files.py b/src/octoprint/server/api/files.py index 6f8b78ec..2d5dcac1 100644 --- a/src/octoprint/server/api/files.py +++ b/src/octoprint/server/api/files.py @@ -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)