Skip to content

Commit

Permalink
Optional Host Start menu item (#19443)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwewer0 authored Sep 19, 2020
1 parent 9fd06fa commit af8f9f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -3232,6 +3232,7 @@
//#define HOST_ACTION_COMMANDS
#if ENABLED(HOST_ACTION_COMMANDS)
//#define HOST_PROMPT_SUPPORT
//#define HOST_START_MENU_ITEM // Add a menu item that tells the host to start
#endif

/**
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/menu/menu_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#include "../../feature/password/password.h"
#endif

#ifdef ACTION_ON_START
#if ENABLED(HOST_START_MENU_ITEM) && defined(ACTION_ON_START)
#include "../../feature/host_actions.h"
#endif

Expand Down Expand Up @@ -162,7 +162,7 @@ void menu_main() {
if (TERN0(MACHINE_CAN_PAUSE, printingIsPaused()))
ACTION_ITEM(MSG_RESUME_PRINT, ui.resume_print);

#ifdef ACTION_ON_START
#if ENABLED(HOST_START_MENU_ITEM) && defined(ACTION_ON_START)
ACTION_ITEM(MSG_HOST_START_PRINT, host_action_start);
#endif

Expand Down

0 comments on commit af8f9f7

Please sign in to comment.