Touch Mi: Add magnet Y position (#15166)

This commit is contained in:
kakou-fr
2019-09-05 01:09:12 +02:00
committed by Scott Lahteine
parent 85f0556118
commit 6b1c4dec46
2 changed files with 8 additions and 3 deletions

View File

@ -116,6 +116,9 @@ float zprobe_zoffset; // Initialized by settings.load()
#if TOUCH_MI_DEPLOY_XPOS > X_MAX_BED
TemporaryGlobalEndstopsState unlock_x(false);
#endif
#if TOUCH_MI_DEPLOY_YPOS > Y_MAX_BED
TemporaryGlobalEndstopsState unlock_y(false);
#endif
#if ENABLED(TOUCH_MI_MANUAL_DEPLOY)
@ -132,10 +135,12 @@ float zprobe_zoffset; // Initialized by settings.load()
ui.reset_status();
ui.goto_screen(prev_screen);
#elif defined(TOUCH_MI_DEPLOY_XPOS) && defined(TOUCH_MI_DEPLOY_YPOS)
do_blocking_move_to_xy(TOUCH_MI_DEPLOY_XPOS, TOUCH_MI_DEPLOY_YPOS);
#elif defined(TOUCH_MI_DEPLOY_XPOS)
do_blocking_move_to_x(TOUCH_MI_DEPLOY_XPOS);
#elif defined(TOUCH_MI_DEPLOY_YPOS)
do_blocking_move_to_y(TOUCH_MI_DEPLOY_YPOS);
#endif
}