Browse Source

Tweak TOUCH_MI_DEPLOY_XPOS block

pull/1/head
Scott Lahteine 5 years ago
parent
commit
17cd1a4f26
  1. 8
      Marlin/src/module/probe.cpp

8
Marlin/src/module/probe.cpp

@ -118,6 +118,7 @@ float zprobe_zoffset; // Initialized by settings.load()
#endif #endif
#if ENABLED(TOUCH_MI_MANUAL_DEPLOY) #if ENABLED(TOUCH_MI_MANUAL_DEPLOY)
const screenFunc_t prev_screen = ui.currentScreen; const screenFunc_t prev_screen = ui.currentScreen;
LCD_MESSAGEPGM(MSG_MANUAL_DEPLOY_TOUCHMI); LCD_MESSAGEPGM(MSG_MANUAL_DEPLOY_TOUCHMI);
ui.return_to_status(); ui.return_to_status();
@ -130,10 +131,11 @@ float zprobe_zoffset; // Initialized by settings.load()
while (wait_for_user) idle(); while (wait_for_user) idle();
ui.reset_status(); ui.reset_status();
ui.goto_screen(prev_screen); ui.goto_screen(prev_screen);
#else
#ifdef TOUCH_MI_DEPLOY_XPOS #elif defined(TOUCH_MI_DEPLOY_XPOS)
do_blocking_move_to_x(TOUCH_MI_DEPLOY_XPOS); do_blocking_move_to_x(TOUCH_MI_DEPLOY_XPOS);
#endif
#endif #endif
} }

Loading…
Cancel
Save