Explorar el Código

Turbo-back Info menu items (#15049)

Tim Moore hace 5 años
padre
commit
8033bc87ea
Se han modificado 1 ficheros con 20 adiciones y 4 borrados
  1. 20
    4
      Marlin/src/lcd/menu/menu_info.cpp

+ 20
- 4
Marlin/src/lcd/menu/menu_info.cpp Ver fichero

@@ -42,7 +42,11 @@
42 42
   // About Printer > Printer Stats
43 43
   //
44 44
   void menu_info_stats() {
45
-    if (ui.use_click()) return ui.goto_previous_screen();
45
+    if (ui.use_click()) return ui.goto_previous_screen(
46
+      #if ENABLED(TURBO_BACK_MENU_ITEM)
47
+        true
48
+      #endif
49
+    );
46 50
 
47 51
     char buffer[21];
48 52
     printStatistics stats = print_job_timer.getStats();
@@ -95,7 +99,11 @@
95 99
 // About Printer > Thermistors
96 100
 //
97 101
 void menu_info_thermistors() {
98
-  if (ui.use_click()) return ui.goto_previous_screen();
102
+  if (ui.use_click()) return ui.goto_previous_screen(
103
+    #if ENABLED(TURBO_BACK_MENU_ITEM)
104
+      true
105
+    #endif
106
+  );
99 107
   START_SCREEN();
100 108
   #define THERMISTOR_ID TEMP_SENSOR_0
101 109
   #include "../thermistornames.h"
@@ -163,7 +171,11 @@ void menu_info_thermistors() {
163 171
 // About Printer > Board Info
164 172
 //
165 173
 void menu_info_board() {
166
-  if (ui.use_click()) return ui.goto_previous_screen();
174
+  if (ui.use_click()) return ui.goto_previous_screen(
175
+    #if ENABLED(TURBO_BACK_MENU_ITEM)
176
+      true
177
+    #endif
178
+  );
167 179
   START_SCREEN();
168 180
   STATIC_ITEM(BOARD_INFO_NAME, true, true);                      // MyPrinterController
169 181
   STATIC_ITEM(MSG_INFO_BAUDRATE ": " STRINGIFY(BAUDRATE), true); // Baud: 250000
@@ -177,7 +189,11 @@ void menu_info_board() {
177 189
 //
178 190
 #if DISABLED(LCD_PRINTER_INFO_IS_BOOTSCREEN)
179 191
   void menu_info_printer() {
180
-    if (ui.use_click()) return ui.goto_previous_screen();
192
+    if (ui.use_click()) return ui.goto_previous_screen(
193
+      #if ENABLED(TURBO_BACK_MENU_ITEM)
194
+        true
195
+      #endif
196
+    );
181 197
     START_SCREEN();
182 198
     STATIC_ITEM(MSG_MARLIN, true, true);                             // Marlin
183 199
     STATIC_ITEM(SHORT_BUILD_VERSION, true);                          // x.x.x-Branch

Loading…
Cancelar
Guardar