From 584d147a024a1b70089752e1016be2f38ca7eaeb Mon Sep 17 00:00:00 2001 From: Roxy-3D Date: Wed, 22 Feb 2017 07:23:54 -0700 Subject: [PATCH] fixup the indentation --- Marlin/ultralcd.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Marlin/ultralcd.cpp b/Marlin/ultralcd.cpp index 1e5aa01c0..4a81dff37 100755 --- a/Marlin/ultralcd.cpp +++ b/Marlin/ultralcd.cpp @@ -417,21 +417,21 @@ uint16_t max_display_update_time = 0; * General function to go directly to a screen */ void lcd_goto_screen(screenFunc_t screen, const uint32_t encoder = 0) { - #ifdef DOUBLE_CLICK_JUMPS_TO_Z_BABYSTEPPING - #if ENABLED(BABYSTEPPING) - if (currentScreen==lcd_status_screen && screen==lcd_main_menu) // We are in leaving the status screen to goto the main_menu - status_screen_click_time = millis(); // screen. Mark the time so we know how quick the user is - // pressing buttons. - if (currentScreen==lcd_main_menu) { - if ( screen==lcd_status_screen && status_screen_click_time+DOUBLE_CLICK_TIME_WINDOW>millis() ) { - lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW; - status_screen_click_time = 0; - lcd_babystep_z(); - return; - } - } - #endif - #endif + #ifdef DOUBLE_CLICK_JUMPS_TO_Z_BABYSTEPPING + #if ENABLED(BABYSTEPPING) + if (currentScreen==lcd_status_screen && screen==lcd_main_menu) // We are in leaving the status screen to goto the main_menu + status_screen_click_time = millis(); // screen. Mark the time so we know how quick the user is + // pressing buttons. + if (currentScreen==lcd_main_menu) { + if ( screen==lcd_status_screen && status_screen_click_time+DOUBLE_CLICK_TIME_WINDOW>millis() ) { + lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW; + status_screen_click_time = 0; + lcd_babystep_z(); + return; + } + } + #endif + #endif if (currentScreen != screen) { currentScreen = screen; encoderPosition = encoder;