TOUCH_MI_DEPLOY_XPOS fallback to X_MIN_POS (#16226)

This commit is contained in:
Luu Lac 2019-12-15 11:21:39 -06:00 committed by Scott Lahteine
parent e9dadacf7b
commit 509e1ab053

View File

@ -113,7 +113,9 @@ xyz_pos_t probe_offset; // 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() {
#if TOUCH_MI_DEPLOY_XPOS > X_MAX_BED #ifndef TOUCH_MI_DEPLOY_XPOS
#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
#if TOUCH_MI_DEPLOY_YPOS > Y_MAX_BED #if TOUCH_MI_DEPLOY_YPOS > Y_MAX_BED