Browse Source

TOUCH_MI_DEPLOY_XPOS fallback to X_MIN_POS (#16226)

Luu Lac 4 years ago
parent
commit
509e1ab053
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      Marlin/src/module/probe.cpp

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

@@ -113,7 +113,9 @@ xyz_pos_t probe_offset; // Initialized by settings.load()
113 113
 
114 114
   // Move to the magnet to unlock the probe
115 115
   void run_deploy_moves_script() {
116
-    #if TOUCH_MI_DEPLOY_XPOS > X_MAX_BED
116
+    #ifndef TOUCH_MI_DEPLOY_XPOS
117
+      #define TOUCH_MI_DEPLOY_XPOS X_MIN_POS
118
+    #elif TOUCH_MI_DEPLOY_XPOS > X_MAX_BED
117 119
       TemporaryGlobalEndstopsState unlock_x(false);
118 120
     #endif
119 121
     #if TOUCH_MI_DEPLOY_YPOS > Y_MAX_BED

Loading…
Cancel
Save