Fix HOST_PROMPT_SUPPORT without LCD
This commit is contained in:
parent
6285776943
commit
52a7a8cb26
@ -37,8 +37,6 @@
|
|||||||
#include "runout.h"
|
#include "runout.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern bool wait_for_user;
|
|
||||||
|
|
||||||
void host_action(const char * const pstr, const bool eol) {
|
void host_action(const char * const pstr, const bool eol) {
|
||||||
SERIAL_ECHOPGM("//action:");
|
SERIAL_ECHOPGM("//action:");
|
||||||
serialprintPGM(pstr);
|
serialprintPGM(pstr);
|
||||||
@ -66,6 +64,10 @@ void host_action(const char * const pstr, const bool eol) {
|
|||||||
|
|
||||||
#if ENABLED(HOST_PROMPT_SUPPORT)
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
|
||||||
|
#if HAS_RESUME_CONTINUE
|
||||||
|
extern bool wait_for_user;
|
||||||
|
#endif
|
||||||
|
|
||||||
PromptReason host_prompt_reason = PROMPT_NOT_DEFINED;
|
PromptReason host_prompt_reason = PROMPT_NOT_DEFINED;
|
||||||
|
|
||||||
void host_action_prompt(const char * const ptype, const bool eol=true) {
|
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;
|
break;
|
||||||
case PROMPT_USER_CONTINUE:
|
case PROMPT_USER_CONTINUE:
|
||||||
|
#if HAS_RESUME_CONTINUE
|
||||||
|
wait_for_user = false;
|
||||||
|
#endif
|
||||||
msg = PSTR("FILAMENT_RUNOUT_CONTINUE");
|
msg = PSTR("FILAMENT_RUNOUT_CONTINUE");
|
||||||
wait_for_user = false;
|
|
||||||
break;
|
break;
|
||||||
case PROMPT_PAUSE_RESUME:
|
case PROMPT_PAUSE_RESUME:
|
||||||
msg = PSTR("LCD_PAUSE_RESUME");
|
msg = PSTR("LCD_PAUSE_RESUME");
|
||||||
|
Loading…
Reference in New Issue
Block a user