Browse Source

Fix 'pause_menu_response' compile error (#14792)

Benjamin Reed 5 years ago
parent
commit
0c035c0a7a
1 changed files with 9 additions and 3 deletions
  1. 9
    3
      Marlin/src/feature/host_actions.cpp

+ 9
- 3
Marlin/src/feature/host_actions.cpp View File

110
       case PROMPT_FILAMENT_RUNOUT:
110
       case PROMPT_FILAMENT_RUNOUT:
111
         msg = PSTR("FILAMENT_RUNOUT");
111
         msg = PSTR("FILAMENT_RUNOUT");
112
         if (response == 0) {
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
           host_action_prompt_end();   // Close current prompt
116
           host_action_prompt_end();   // Close current prompt
115
           host_action_prompt_begin(PSTR("Paused"));
117
           host_action_prompt_begin(PSTR("Paused"));
116
           host_action_prompt_button(PSTR("Purge More"));
118
           host_action_prompt_button(PSTR("Purge More"));
133
               runout.reset();
135
               runout.reset();
134
             }
136
             }
135
           #endif
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
         break;
142
         break;
139
       case PROMPT_USER_CONTINUE:
143
       case PROMPT_USER_CONTINUE:
142
         break;
146
         break;
143
       case PROMPT_PAUSE_RESUME:
147
       case PROMPT_PAUSE_RESUME:
144
         msg = PSTR("LCD_PAUSE_RESUME");
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
         break;
152
         break;
147
       case PROMPT_INFO:
153
       case PROMPT_INFO:
148
         msg = PSTR("GCODE_INFO");
154
         msg = PSTR("GCODE_INFO");

Loading…
Cancel
Save