Fix 'pause_menu_response' compile error (#14792)

This commit is contained in:
Benjamin Reed 2019-07-31 15:21:25 -07:00 committed by Scott Lahteine
parent 3db1a80b4c
commit 0c035c0a7a

View File

@ -110,7 +110,9 @@ void host_action(const char * const pstr, const bool eol) {
case PROMPT_FILAMENT_RUNOUT: case PROMPT_FILAMENT_RUNOUT:
msg = PSTR("FILAMENT_RUNOUT"); msg = PSTR("FILAMENT_RUNOUT");
if (response == 0) { if (response == 0) {
#if ENABLED(ADVANCED_PAUSE_FEATURE)
pause_menu_response = PAUSE_RESPONSE_EXTRUDE_MORE; pause_menu_response = PAUSE_RESPONSE_EXTRUDE_MORE;
#endif
host_action_prompt_end(); // Close current prompt host_action_prompt_end(); // Close current prompt
host_action_prompt_begin(PSTR("Paused")); host_action_prompt_begin(PSTR("Paused"));
host_action_prompt_button(PSTR("Purge More")); host_action_prompt_button(PSTR("Purge More"));
@ -133,7 +135,9 @@ void host_action(const char * const pstr, const bool eol) {
runout.reset(); runout.reset();
} }
#endif #endif
#if ENABLED(ADVANCED_PAUSE_FEATURE)
pause_menu_response = PAUSE_RESPONSE_RESUME_PRINT; pause_menu_response = PAUSE_RESPONSE_RESUME_PRINT;
#endif
} }
break; break;
case PROMPT_USER_CONTINUE: case PROMPT_USER_CONTINUE:
@ -142,7 +146,9 @@ void host_action(const char * const pstr, const bool eol) {
break; break;
case PROMPT_PAUSE_RESUME: case PROMPT_PAUSE_RESUME:
msg = PSTR("LCD_PAUSE_RESUME"); msg = PSTR("LCD_PAUSE_RESUME");
#if ENABLED(ADVANCED_PAUSE_FEATURE)
queue.inject_P(PSTR("M24")); queue.inject_P(PSTR("M24"));
#endif
break; break;
case PROMPT_INFO: case PROMPT_INFO:
msg = PSTR("GCODE_INFO"); msg = PSTR("GCODE_INFO");