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

This commit is contained in:
Fourmi 2019-08-08 09:40:48 +02:00 committed by Scott Lahteine
parent 535018ef0e
commit eb3a3d249e

View file

@ -109,9 +109,7 @@ float zprobe_zoffset; // Initialized by settings.load()
// Move to the magnet to unlock the probe // Move to the magnet to unlock the probe
void run_deploy_moves_script() { void run_deploy_moves_script() {
#ifndef TOUCH_MI_DEPLOY_XPOS #if TOUCH_MI_DEPLOY_XPOS > X_MAX_BED
#define TOUCH_MI_DEPLOY_XPOS X_MIN_POS
#elif TOUCH_MI_DEPLOY_XPOS > X_MAX_BED
TemporaryGlobalEndstopsState unlock_x(false); TemporaryGlobalEndstopsState unlock_x(false);
#endif #endif
@ -129,7 +127,9 @@ float zprobe_zoffset; // Initialized by settings.load()
ui.reset_status(); ui.reset_status();
ui.goto_screen(prev_screen); ui.goto_screen(prev_screen);
#else #else
do_blocking_move_to_x(TOUCH_MI_DEPLOY_XPOS); #ifdef TOUCH_MI_DEPLOY_XPOS
do_blocking_move_to_x(TOUCH_MI_DEPLOY_XPOS);
#endif
#endif #endif
} }