Allow a retraction z hop of 0 in timelapse configuration
See comment by @markwal at https://github.com/foosel/OctoPrint/pull/1148#pullrequestreview-14802655
This commit is contained in:
parent
dc3182c872
commit
f3f60674fc
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue