Browse Source

Fix HOST_PROMPT_SUPPORT without LCD

pull/1/head
Scott Lahteine 5 years ago
parent
commit
52a7a8cb26
  1. 10
      Marlin/src/feature/host_actions.cpp

10
Marlin/src/feature/host_actions.cpp

@ -37,8 +37,6 @@
#include "runout.h"
#endif
extern bool wait_for_user;
void host_action(const char * const pstr, const bool eol) {
SERIAL_ECHOPGM("//action:");
serialprintPGM(pstr);
@ -66,6 +64,10 @@ void host_action(const char * const pstr, const bool eol) {
#if ENABLED(HOST_PROMPT_SUPPORT)
#if HAS_RESUME_CONTINUE
extern bool wait_for_user;
#endif
PromptReason host_prompt_reason = PROMPT_NOT_DEFINED;
void host_action_prompt(const char * const ptype, const bool eol=true) {
@ -141,8 +143,10 @@ void host_action(const char * const pstr, const bool eol) {
}
break;
case PROMPT_USER_CONTINUE:
#if HAS_RESUME_CONTINUE
wait_for_user = false;
#endif
msg = PSTR("FILAMENT_RUNOUT_CONTINUE");
wait_for_user = false;
break;
case PROMPT_PAUSE_RESUME:
msg = PSTR("LCD_PAUSE_RESUME");

Loading…
Cancel
Save