From 17cd1a4f2694cfb4ed5c7ed7cdd05c0a5351e4aa Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 14 Aug 2019 00:03:12 -0500 Subject: [PATCH] Tweak TOUCH_MI_DEPLOY_XPOS block --- Marlin/src/module/probe.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Marlin/src/module/probe.cpp b/Marlin/src/module/probe.cpp index 15c3915aee..4f63cdd453 100644 --- a/Marlin/src/module/probe.cpp +++ b/Marlin/src/module/probe.cpp @@ -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(); @@ -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 }