소스 검색

Optional Host Start menu item (#19443)

qwewer0 4 년 전
부모
커밋
af8f9f790a
No account linked to committer's email address
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    0
      Marlin/Configuration_adv.h
  2. 2
    2
      Marlin/src/lcd/menu/menu_main.cpp

+ 1
- 0
Marlin/Configuration_adv.h 파일 보기

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

+ 2
- 2
Marlin/src/lcd/menu/menu_main.cpp 파일 보기

54
   #include "../../feature/password/password.h"
54
   #include "../../feature/password/password.h"
55
 #endif
55
 #endif
56
 
56
 
57
-#ifdef ACTION_ON_START
57
+#if ENABLED(HOST_START_MENU_ITEM) && defined(ACTION_ON_START)
58
   #include "../../feature/host_actions.h"
58
   #include "../../feature/host_actions.h"
59
 #endif
59
 #endif
60
 
60
 
162
     if (TERN0(MACHINE_CAN_PAUSE, printingIsPaused()))
162
     if (TERN0(MACHINE_CAN_PAUSE, printingIsPaused()))
163
       ACTION_ITEM(MSG_RESUME_PRINT, ui.resume_print);
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
       ACTION_ITEM(MSG_HOST_START_PRINT, host_action_start);
166
       ACTION_ITEM(MSG_HOST_START_PRINT, host_action_start);
167
     #endif
167
     #endif
168
 
168
 

Loading…
취소
저장