修复开门检测机型暂停后点击恢复没反应的问题
(cherry picked from commit d9500887ac6447bf541e44b36584cd9dfba51533)
This commit is contained in:
parent
1ae7fc486f
commit
661f3eae0f
@ -815,13 +815,13 @@ gcode:
|
||||
{% set door_function = sv.door_detect|default("Disabled") %}
|
||||
{% set door_state = printer['gcode_button _door_detection'].state|default('released')|lower %}
|
||||
|
||||
{% if door_function == 'Pause Print' and door_state == 'pressed' %}
|
||||
{ resume_action() }
|
||||
{% elif door_function == 'Pause Print' and door_state == 'released' %}
|
||||
{% if door_function == 'Pause Print' and door_state == 'released' %}
|
||||
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_footer_button Ok|RESPOND TYPE=command MSG=action:prompt_end"
|
||||
RESPOND TYPE=command MSG="action:prompt_show"
|
||||
{% else %}
|
||||
{ resume_action() }
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{ resume_action() }
|
||||
|
@ -817,13 +817,13 @@ gcode:
|
||||
{% set door_function = sv.door_detect|default("Disabled") %}
|
||||
{% set door_state = printer['gcode_button _door_detection'].state|default('released')|lower %}
|
||||
|
||||
{% if door_function == 'Pause Print' and door_state == 'pressed' %}
|
||||
{ resume_action() }
|
||||
{% elif door_function == 'Pause Print' and door_state == 'released' %}
|
||||
{% if door_function == 'Pause Print' and door_state == 'released' %}
|
||||
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_footer_button Ok|RESPOND TYPE=command MSG=action:prompt_end"
|
||||
RESPOND TYPE=command MSG="action:prompt_show"
|
||||
{% else %}
|
||||
{ resume_action() }
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{ resume_action() }
|
||||
|
Loading…
x
Reference in New Issue
Block a user