|
@@ -37,8 +37,6 @@
|
37
|
37
|
#include "runout.h"
|
38
|
38
|
#endif
|
39
|
39
|
|
40
|
|
-extern bool wait_for_user;
|
41
|
|
-
|
42
|
40
|
void host_action(const char * const pstr, const bool eol) {
|
43
|
41
|
SERIAL_ECHOPGM("//action:");
|
44
|
42
|
serialprintPGM(pstr);
|
|
@@ -66,6 +64,10 @@ void host_action(const char * const pstr, const bool eol) {
|
66
|
64
|
|
67
|
65
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
68
|
66
|
|
|
67
|
+ #if HAS_RESUME_CONTINUE
|
|
68
|
+ extern bool wait_for_user;
|
|
69
|
+ #endif
|
|
70
|
+
|
69
|
71
|
PromptReason host_prompt_reason = PROMPT_NOT_DEFINED;
|
70
|
72
|
|
71
|
73
|
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) {
|
141
|
143
|
}
|
142
|
144
|
break;
|
143
|
145
|
case PROMPT_USER_CONTINUE:
|
|
146
|
+ #if HAS_RESUME_CONTINUE
|
|
147
|
+ wait_for_user = false;
|
|
148
|
+ #endif
|
144
|
149
|
msg = PSTR("FILAMENT_RUNOUT_CONTINUE");
|
145
|
|
- wait_for_user = false;
|
146
|
150
|
break;
|
147
|
151
|
case PROMPT_PAUSE_RESUME:
|
148
|
152
|
msg = PSTR("LCD_PAUSE_RESUME");
|