Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support turbo back for menu info submenu items #15049

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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