Browse Source

Fix HOST_PROMPT_SUPPORT without LCD

Scott Lahteine 6 years ago
parent
commit
52a7a8cb26
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      Marlin/src/feature/host_actions.cpp

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

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

Loading…
Cancel
Save