|
@@ -109,9 +109,7 @@ float zprobe_zoffset; // Initialized by settings.load()
|
109
|
109
|
|
110
|
110
|
// Move to the magnet to unlock the probe
|
111
|
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
|
113
|
TemporaryGlobalEndstopsState unlock_x(false);
|
116
|
114
|
#endif
|
117
|
115
|
|
|
@@ -129,7 +127,9 @@ float zprobe_zoffset; // Initialized by settings.load()
|
129
|
127
|
ui.reset_status();
|
130
|
128
|
ui.goto_screen(prev_screen);
|
131
|
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
|
133
|
#endif
|
134
|
134
|
}
|
135
|
135
|
|