Skip to content

Commit

Permalink
Turbo-back Info menu items (#15049)
Browse files Browse the repository at this point in the history
  • Loading branch information
timmmoore authored and thinkyhead committed Aug 25, 2019
1 parent d6a1652 commit 8033bc8
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions Marlin/src/lcd/menu/menu_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@
// About Printer > Printer Stats
//
void menu_info_stats() {
if (ui.use_click()) return ui.goto_previous_screen();
if (ui.use_click()) return ui.goto_previous_screen(
#if ENABLED(TURBO_BACK_MENU_ITEM)
true
#endif
);

char buffer[21];
printStatistics stats = print_job_timer.getStats();
Expand Down Expand Up @@ -95,7 +99,11 @@
// About Printer > Thermistors
//
void menu_info_thermistors() {
if (ui.use_click()) return ui.goto_previous_screen();
if (ui.use_click()) return ui.goto_previous_screen(
#if ENABLED(TURBO_BACK_MENU_ITEM)
true
#endif
);
START_SCREEN();
#define THERMISTOR_ID TEMP_SENSOR_0
#include "../thermistornames.h"
Expand Down Expand Up @@ -163,7 +171,11 @@ void menu_info_thermistors() {
// About Printer > Board Info
//
void menu_info_board() {
if (ui.use_click()) return ui.goto_previous_screen();
if (ui.use_click()) return ui.goto_previous_screen(
#if ENABLED(TURBO_BACK_MENU_ITEM)
true
#endif
);
START_SCREEN();
STATIC_ITEM(BOARD_INFO_NAME, true, true); // MyPrinterController
STATIC_ITEM(MSG_INFO_BAUDRATE ": " STRINGIFY(BAUDRATE), true); // Baud: 250000
Expand All @@ -177,7 +189,11 @@ void menu_info_board() {
//
#if DISABLED(LCD_PRINTER_INFO_IS_BOOTSCREEN)
void menu_info_printer() {
if (ui.use_click()) return ui.goto_previous_screen();
if (ui.use_click()) return ui.goto_previous_screen(
#if ENABLED(TURBO_BACK_MENU_ITEM)
true
#endif
);
START_SCREEN();
STATIC_ITEM(MSG_MARLIN, true, true); // Marlin
STATIC_ITEM(SHORT_BUILD_VERSION, true); // x.x.x-Branch
Expand Down

0 comments on commit 8033bc8

Please sign in to comment.