Pārlūkot izejas kodu

Fix 'pause_menu_response' compile error (#14792)

Benjamin Reed 5 gadus atpakaļ
vecāks
revīzija
0c035c0a7a
1 mainītis faili ar 9 papildinājumiem un 3 dzēšanām
  1. 9
    3
      Marlin/src/feature/host_actions.cpp

+ 9
- 3
Marlin/src/feature/host_actions.cpp Parādīt failu

@@ -110,7 +110,9 @@ void host_action(const char * const pstr, const bool eol) {
110 110
       case PROMPT_FILAMENT_RUNOUT:
111 111
         msg = PSTR("FILAMENT_RUNOUT");
112 112
         if (response == 0) {
113
-          pause_menu_response = PAUSE_RESPONSE_EXTRUDE_MORE;
113
+          #if ENABLED(ADVANCED_PAUSE_FEATURE)
114
+            pause_menu_response = PAUSE_RESPONSE_EXTRUDE_MORE;
115
+          #endif
114 116
           host_action_prompt_end();   // Close current prompt
115 117
           host_action_prompt_begin(PSTR("Paused"));
116 118
           host_action_prompt_button(PSTR("Purge More"));
@@ -133,7 +135,9 @@ void host_action(const char * const pstr, const bool eol) {
133 135
               runout.reset();
134 136
             }
135 137
           #endif
136
-          pause_menu_response = PAUSE_RESPONSE_RESUME_PRINT;
138
+          #if ENABLED(ADVANCED_PAUSE_FEATURE)
139
+            pause_menu_response = PAUSE_RESPONSE_RESUME_PRINT;
140
+          #endif
137 141
         }
138 142
         break;
139 143
       case PROMPT_USER_CONTINUE:
@@ -142,7 +146,9 @@ void host_action(const char * const pstr, const bool eol) {
142 146
         break;
143 147
       case PROMPT_PAUSE_RESUME:
144 148
         msg = PSTR("LCD_PAUSE_RESUME");
145
-        queue.inject_P(PSTR("M24"));
149
+        #if ENABLED(ADVANCED_PAUSE_FEATURE)
150
+          queue.inject_P(PSTR("M24"));
151
+        #endif
146 152
         break;
147 153
       case PROMPT_INFO:
148 154
         msg = PSTR("GCODE_INFO");

Notiek ielāde…
Atcelt
Saglabāt