Host Action: Start (#19398)

This commit is contained in:
InsanityAutomation
2020-09-17 07:36:21 -04:00
committed by Scott Lahteine
parent 70c5871910
commit 23376b8a31
5 changed files with 18 additions and 0 deletions

View File

@ -366,6 +366,7 @@ namespace Language_en {
PROGMEM Language_Str MSG_PAUSING = _UxGT("Pausing...");
PROGMEM Language_Str MSG_PAUSE_PRINT = _UxGT("Pause Print");
PROGMEM Language_Str MSG_RESUME_PRINT = _UxGT("Resume Print");
PROGMEM Language_Str MSG_HOST_START_PRINT = _UxGT("Host Start");
PROGMEM Language_Str MSG_STOP_PRINT = _UxGT("Stop Print");
PROGMEM Language_Str MSG_PRINTING_OBJECT = _UxGT("Printing Object");
PROGMEM Language_Str MSG_CANCEL_OBJECT = _UxGT("Cancel Object");

View File

@ -54,6 +54,10 @@
#include "../../feature/password/password.h"
#endif
#ifdef ACTION_ON_START
#include "../../feature/host_actions.h"
#endif
void menu_tune();
void menu_cancelobject();
void menu_motion();
@ -158,6 +162,10 @@ void menu_main() {
if (TERN0(MACHINE_CAN_PAUSE, printingIsPaused()))
ACTION_ITEM(MSG_RESUME_PRINT, ui.resume_print);
#ifdef ACTION_ON_START
ACTION_ITEM(MSG_HOST_START_PRINT, host_action_start);
#endif
SUBMENU(MSG_MOTION, menu_motion);
}