Merge pull request #13718 from discip/patch-2

minor fixes + layer_no instead of height
This commit is contained in:
Joey de l'Arago 2022-11-11 11:17:22 +01:00 committed by GitHub
commit ebbefb5439
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ class PauseAtHeight(Script):
"description": "Whether to pause at a certain height or at a certain layer.", "description": "Whether to pause at a certain height or at a certain layer.",
"type": "enum", "type": "enum",
"options": {"height": "Height", "layer_no": "Layer Number"}, "options": {"height": "Height", "layer_no": "Layer Number"},
"default_value": "height" "default_value": "layer_no"
}, },
"pause_height": "pause_height":
{ {
@ -482,7 +482,7 @@ class PauseAtHeight(Script):
# Wait till the user continues printing # Wait till the user continues printing
prepend_gcode += pause_command + " ; Do the actual pause\n" prepend_gcode += pause_command + " ; Do the actual pause\n"
# Set a custom GCODE section before pause # Set a custom GCODE section after pause
if gcode_after: if gcode_after:
prepend_gcode += gcode_after.replace(";","\n") + "\n" prepend_gcode += gcode_after.replace(";","\n") + "\n"