Merge branch 'develop' of https://server.creatbot.com/Gitea/CreatBot/CreatBotKlipper into develop
This commit is contained in:
commit
4a146e8d80
@ -831,13 +831,13 @@ gcode:
|
|||||||
{% set door_function = sv.door_detect|default("Disabled") %}
|
{% set door_function = sv.door_detect|default("Disabled") %}
|
||||||
{% set door_state = printer['gcode_button _door_detection'].state|default('released')|lower %}
|
{% set door_state = printer['gcode_button _door_detection'].state|default('released')|lower %}
|
||||||
|
|
||||||
{% if door_function == 'Pause Print' and door_state == 'pressed' %}
|
{% if door_function == 'Pause Print' and door_state == 'released' %}
|
||||||
{ resume_action() }
|
|
||||||
{% elif door_function == 'Pause Print' and door_state == 'released' %}
|
|
||||||
RESPOND TYPE=command MSG="action:prompt_begin"
|
RESPOND TYPE=command MSG="action:prompt_begin"
|
||||||
RESPOND TYPE=command MSG="action:prompt_text Please close the door and click Resume to proceed."
|
RESPOND TYPE=command MSG="action:prompt_text Please close the door and click Resume to proceed."
|
||||||
RESPOND TYPE=command MSG="action:prompt_footer_button Ok|RESPOND TYPE=command MSG=action:prompt_end"
|
RESPOND TYPE=command MSG="action:prompt_footer_button Ok|RESPOND TYPE=command MSG=action:prompt_end"
|
||||||
RESPOND TYPE=command MSG="action:prompt_show"
|
RESPOND TYPE=command MSG="action:prompt_show"
|
||||||
|
{% else %}
|
||||||
|
{ resume_action() }
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{ resume_action() }
|
{ resume_action() }
|
||||||
|
@ -833,13 +833,13 @@ gcode:
|
|||||||
{% set door_function = sv.door_detect|default("Disabled") %}
|
{% set door_function = sv.door_detect|default("Disabled") %}
|
||||||
{% set door_state = printer['gcode_button _door_detection'].state|default('released')|lower %}
|
{% set door_state = printer['gcode_button _door_detection'].state|default('released')|lower %}
|
||||||
|
|
||||||
{% if door_function == 'Pause Print' and door_state == 'pressed' %}
|
{% if door_function == 'Pause Print' and door_state == 'released' %}
|
||||||
{ resume_action() }
|
|
||||||
{% elif door_function == 'Pause Print' and door_state == 'released' %}
|
|
||||||
RESPOND TYPE=command MSG="action:prompt_begin"
|
RESPOND TYPE=command MSG="action:prompt_begin"
|
||||||
RESPOND TYPE=command MSG="action:prompt_text Please close the door and click Resume to proceed."
|
RESPOND TYPE=command MSG="action:prompt_text Please close the door and click Resume to proceed."
|
||||||
RESPOND TYPE=command MSG="action:prompt_footer_button Ok|RESPOND TYPE=command MSG=action:prompt_end"
|
RESPOND TYPE=command MSG="action:prompt_footer_button Ok|RESPOND TYPE=command MSG=action:prompt_end"
|
||||||
RESPOND TYPE=command MSG="action:prompt_show"
|
RESPOND TYPE=command MSG="action:prompt_show"
|
||||||
|
{% else %}
|
||||||
|
{ resume_action() }
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{ resume_action() }
|
{ resume_action() }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user