From f3f60674fc454942e45e5117be02a886ed4c6469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 9 Jan 2017 17:00:04 +0100 Subject: [PATCH] Allow a retraction z hop of 0 in timelapse configuration See comment by @markwal at https://github.com/foosel/OctoPrint/pull/1148#pullrequestreview-14802655 --- src/octoprint/server/api/timelapse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/server/api/timelapse.py b/src/octoprint/server/api/timelapse.py index 78cf69c2..e7272eb6 100644 --- a/src/octoprint/server/api/timelapse.py +++ b/src/octoprint/server/api/timelapse.py @@ -230,7 +230,7 @@ def setTimelapseConfig(): except ValueError: return make_response("Invalid value for retraction Z-Hop: %r" % data["retractionZHop"]) else: - if retractionZHop > 0: + if retractionZHop >= 0: config["options"]["retractionZHop"] = retractionZHop else: return make_response("Invalid value for retraction Z-Hop: %d" % retractionZHop)