Browse Source

Fix TouchMI probe movement (left side) (#14875)

Fourmi 6 years ago
parent
commit
eb3a3d249e
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/src/module/probe.cpp

+ 4
- 4
Marlin/src/module/probe.cpp View File

109
 
109
 
110
   // Move to the magnet to unlock the probe
110
   // Move to the magnet to unlock the probe
111
   void run_deploy_moves_script() {
111
   void run_deploy_moves_script() {
112
-    #ifndef TOUCH_MI_DEPLOY_XPOS
113
-      #define TOUCH_MI_DEPLOY_XPOS X_MIN_POS
114
-    #elif TOUCH_MI_DEPLOY_XPOS > X_MAX_BED
112
+    #if TOUCH_MI_DEPLOY_XPOS > X_MAX_BED
115
       TemporaryGlobalEndstopsState unlock_x(false);
113
       TemporaryGlobalEndstopsState unlock_x(false);
116
     #endif
114
     #endif
117
 
115
 
129
       ui.reset_status();
127
       ui.reset_status();
130
       ui.goto_screen(prev_screen);
128
       ui.goto_screen(prev_screen);
131
     #else
129
     #else
132
-      do_blocking_move_to_x(TOUCH_MI_DEPLOY_XPOS);
130
+      #ifdef TOUCH_MI_DEPLOY_XPOS
131
+        do_blocking_move_to_x(TOUCH_MI_DEPLOY_XPOS);
132
+      #endif
133
     #endif
133
     #endif
134
   }
134
   }
135
 
135
 

Loading…
Cancel
Save