From d9500887ac6447bf541e44b36584cd9dfba51533 Mon Sep 17 00:00:00 2001
From: ruipeng <1041589370@qq.com>
Date: Fri, 11 Apr 2025 10:02:20 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=80=E9=97=A8=E6=A3=80?=
 =?UTF-8?q?=E6=B5=8B=E6=9C=BA=E5=9E=8B=E6=9A=82=E5=81=9C=E5=90=8E=E7=82=B9?=
 =?UTF-8?q?=E5=87=BB=E6=81=A2=E5=A4=8D=E6=B2=A1=E5=8F=8D=E5=BA=94=E7=9A=84?=
 =?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 config/CreatBot_D1000/base.cfg    | 6 +++---
 config/CreatBot_D600Pro2/base.cfg | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/config/CreatBot_D1000/base.cfg b/config/CreatBot_D1000/base.cfg
index d31816a1b..46b9a4bd5 100644
--- a/config/CreatBot_D1000/base.cfg
+++ b/config/CreatBot_D1000/base.cfg
@@ -831,13 +831,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() }
diff --git a/config/CreatBot_D600Pro2/base.cfg b/config/CreatBot_D600Pro2/base.cfg
index b303263ef..72b9175d9 100644
--- a/config/CreatBot_D600Pro2/base.cfg
+++ b/config/CreatBot_D600Pro2/base.cfg
@@ -823,13 +823,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() }