Skip to content

Commit

Permalink
Tweak TOUCH_MI_DEPLOY_XPOS block
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Aug 19, 2019
1 parent dfcd437 commit 17cd1a4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Marlin/src/module/probe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ float zprobe_zoffset; // Initialized by settings.load()
#endif

#if ENABLED(TOUCH_MI_MANUAL_DEPLOY)

const screenFunc_t prev_screen = ui.currentScreen;
LCD_MESSAGEPGM(MSG_MANUAL_DEPLOY_TOUCHMI);
ui.return_to_status();
Expand All @@ -130,10 +131,11 @@ float zprobe_zoffset; // Initialized by settings.load()
while (wait_for_user) idle();
ui.reset_status();
ui.goto_screen(prev_screen);
#else
#ifdef TOUCH_MI_DEPLOY_XPOS
do_blocking_move_to_x(TOUCH_MI_DEPLOY_XPOS);
#endif

#elif defined(TOUCH_MI_DEPLOY_XPOS)

do_blocking_move_to_x(TOUCH_MI_DEPLOY_XPOS);

#endif
}

Expand Down

0 comments on commit 17cd1a4

Please sign in to comment.