Ver código fonte

Optional Host Start menu item (#19443)

qwewer0 4 anos atrás
pai
commit
af8f9f790a
Nenhuma conta vinculada ao e-mail do autor do commit
2 arquivos alterados com 3 adições e 2 exclusões
  1. 1
    0
      Marlin/Configuration_adv.h
  2. 2
    2
      Marlin/src/lcd/menu/menu_main.cpp

+ 1
- 0
Marlin/Configuration_adv.h Ver arquivo

@@ -3232,6 +3232,7 @@
3232 3232
 //#define HOST_ACTION_COMMANDS
3233 3233
 #if ENABLED(HOST_ACTION_COMMANDS)
3234 3234
   //#define HOST_PROMPT_SUPPORT
3235
+  //#define HOST_START_MENU_ITEM  // Add a menu item that tells the host to start
3235 3236
 #endif
3236 3237
 
3237 3238
 /**

+ 2
- 2
Marlin/src/lcd/menu/menu_main.cpp Ver arquivo

@@ -54,7 +54,7 @@
54 54
   #include "../../feature/password/password.h"
55 55
 #endif
56 56
 
57
-#ifdef ACTION_ON_START
57
+#if ENABLED(HOST_START_MENU_ITEM) && defined(ACTION_ON_START)
58 58
   #include "../../feature/host_actions.h"
59 59
 #endif
60 60
 
@@ -162,7 +162,7 @@ void menu_main() {
162 162
     if (TERN0(MACHINE_CAN_PAUSE, printingIsPaused()))
163 163
       ACTION_ITEM(MSG_RESUME_PRINT, ui.resume_print);
164 164
 
165
-    #ifdef ACTION_ON_START
165
+    #if ENABLED(HOST_START_MENU_ITEM) && defined(ACTION_ON_START)
166 166
       ACTION_ITEM(MSG_HOST_START_PRINT, host_action_start);
167 167
     #endif
168 168
 

Carregando…
Cancelar
Salvar