Sfoglia il codice sorgente

fixup the indentation

Roxy-3D 8 anni fa
parent
commit
584d147a02
1 ha cambiato i file con 15 aggiunte e 15 eliminazioni
  1. 15
    15
      Marlin/ultralcd.cpp

+ 15
- 15
Marlin/ultralcd.cpp Vedi File

417
    * General function to go directly to a screen
417
    * General function to go directly to a screen
418
    */
418
    */
419
   void lcd_goto_screen(screenFunc_t screen, const uint32_t encoder = 0) {
419
   void lcd_goto_screen(screenFunc_t screen, const uint32_t encoder = 0) {
420
-  #ifdef DOUBLE_CLICK_JUMPS_TO_Z_BABYSTEPPING
421
-  #if ENABLED(BABYSTEPPING)
422
-    if (currentScreen==lcd_status_screen && screen==lcd_main_menu)	// We are in leaving the status screen to goto the main_menu 
423
-      status_screen_click_time = millis();				// screen.  Mark the time so we know how quick the user is
424
-									// pressing buttons.
425
-    if (currentScreen==lcd_main_menu)  {
426
-      if ( screen==lcd_status_screen && status_screen_click_time+DOUBLE_CLICK_TIME_WINDOW>millis() ) {
427
-        lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW;
428
-        status_screen_click_time = 0;
429
-        lcd_babystep_z();
430
-        return;
431
-      }
432
-    }
433
-  #endif
434
-  #endif
420
+    #ifdef DOUBLE_CLICK_JUMPS_TO_Z_BABYSTEPPING
421
+      #if ENABLED(BABYSTEPPING) 
422
+        if (currentScreen==lcd_status_screen && screen==lcd_main_menu)  // We are in leaving the status screen to goto the main_menu  
423
+          status_screen_click_time = millis();       // screen.  Mark the time so we know how quick the user is 
424
+                     // pressing buttons. 
425
+        if (currentScreen==lcd_main_menu)  { 
426
+          if ( screen==lcd_status_screen && status_screen_click_time+DOUBLE_CLICK_TIME_WINDOW>millis() ) { 
427
+            lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW; 
428
+            status_screen_click_time = 0; 
429
+            lcd_babystep_z(); 
430
+          return; 
431
+          } 
432
+        } 
433
+      #endif 
434
+    #endif 
435
     if (currentScreen != screen) {
435
     if (currentScreen != screen) {
436
       currentScreen = screen;
436
       currentScreen = screen;
437
       encoderPosition = encoder;
437
       encoderPosition = encoder;

Loading…
Annulla
Salva