|
@@ -417,21 +417,21 @@ uint16_t max_display_update_time = 0;
|
417
|
417
|
* General function to go directly to a screen
|
418
|
418
|
*/
|
419
|
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
|
435
|
if (currentScreen != screen) {
|
436
|
436
|
currentScreen = screen;
|
437
|
437
|
encoderPosition = encoder;
|