Browse Source

Turbo-back Info menu items (#15049)

pull/1/head
Tim Moore 5 years ago
committed by Scott Lahteine
parent
commit
8033bc87ea
  1. 24
      Marlin/src/lcd/menu/menu_info.cpp

24
Marlin/src/lcd/menu/menu_info.cpp

@ -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();
@ -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"
@ -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
@ -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

Loading…
Cancel
Save