Browse Source

Fix wait_for_user + PAUSE_BEFORE_DEPLOY_STOW issue (#14831)

Ludy 5 years ago
parent
commit
528c9885f2
2 changed files with 6 additions and 3 deletions
  1. 1
    0
      Marlin/src/lcd/ultralcd.h
  2. 5
    3
      Marlin/src/module/probe.cpp

+ 1
- 0
Marlin/src/lcd/ultralcd.h View File

@@ -395,6 +395,7 @@ public:
395 395
     static inline void init() {}
396 396
     static inline void update() {}
397 397
     static inline void refresh() {}
398
+    static inline void return_to_status() {}
398 399
     static inline void set_alert_status_P(PGM_P message) { UNUSED(message); }
399 400
     static inline void set_status(const char* const message, const bool persist=false) { UNUSED(message); UNUSED(persist); }
400 401
     static inline void set_status_P(PGM_P const message, const int8_t level=0) { UNUSED(message); UNUSED(level); }

+ 5
- 3
Marlin/src/module/probe.cpp View File

@@ -38,9 +38,7 @@
38 38
 #include "../gcode/gcode.h"
39 39
 #include "../lcd/ultralcd.h"
40 40
 
41
-#if ANY(Z_PROBE_SLED, Z_PROBE_ALLEN_KEY, PROBE_TRIGGERED_WHEN_STOWED_TEST) || (QUIET_PROBING && ENABLED(PROBING_STEPPERS_OFF))
42
-  #include "../Marlin.h" // for stop(), disable_e_steppers
43
-#endif
41
+#include "../Marlin.h" // for stop(), disable_e_steppers, wait_for_user
44 42
 
45 43
 #if HAS_LEVELING
46 44
   #include "../feature/bedlevel/bedlevel.h"
@@ -64,6 +62,10 @@ float zprobe_zoffset; // Initialized by settings.load()
64 62
   #include "../feature/bltouch.h"
65 63
 #endif
66 64
 
65
+#if ENABLED(HOST_PROMPT_SUPPORT)
66
+  #include "../feature/host_actions.h" // for PROMPT_USER_CONTINUE
67
+#endif
68
+
67 69
 #if HAS_Z_SERVO_PROBE
68 70
   #include "servo.h"
69 71
 #endif

Loading…
Cancel
Save