mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-30 15:26:18 +00:00
Host Action: Start (#19398)
This commit is contained in:
parent
da1a60aeb6
commit
62206c0386
@ -62,6 +62,9 @@ void host_action(PGM_P const pstr, const bool eol) {
|
|||||||
#ifdef ACTION_ON_CANCEL
|
#ifdef ACTION_ON_CANCEL
|
||||||
void host_action_cancel() { host_action(PSTR(ACTION_ON_CANCEL)); }
|
void host_action_cancel() { host_action(PSTR(ACTION_ON_CANCEL)); }
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef ACTION_ON_START
|
||||||
|
void host_action_start() { host_action(PSTR(ACTION_ON_START)); }
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLED(HOST_PROMPT_SUPPORT)
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
|
||||||
|
@ -44,6 +44,9 @@ void host_action(PGM_P const pstr, const bool eol=true);
|
|||||||
#ifdef ACTION_ON_CANCEL
|
#ifdef ACTION_ON_CANCEL
|
||||||
void host_action_cancel();
|
void host_action_cancel();
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef ACTION_ON_START
|
||||||
|
void host_action_start();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLED(HOST_PROMPT_SUPPORT)
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
|
||||||
|
@ -196,6 +196,9 @@
|
|||||||
#ifndef ACTION_ON_CANCEL
|
#ifndef ACTION_ON_CANCEL
|
||||||
#define ACTION_ON_CANCEL "cancel"
|
#define ACTION_ON_CANCEL "cancel"
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef ACTION_ON_START
|
||||||
|
#define ACTION_ON_START "start"
|
||||||
|
#endif
|
||||||
#ifndef ACTION_ON_KILL
|
#ifndef ACTION_ON_KILL
|
||||||
#define ACTION_ON_KILL "poweroff"
|
#define ACTION_ON_KILL "poweroff"
|
||||||
#endif
|
#endif
|
||||||
|
@ -366,6 +366,7 @@ namespace Language_en {
|
|||||||
PROGMEM Language_Str MSG_PAUSING = _UxGT("Pausing...");
|
PROGMEM Language_Str MSG_PAUSING = _UxGT("Pausing...");
|
||||||
PROGMEM Language_Str MSG_PAUSE_PRINT = _UxGT("Pause Print");
|
PROGMEM Language_Str MSG_PAUSE_PRINT = _UxGT("Pause Print");
|
||||||
PROGMEM Language_Str MSG_RESUME_PRINT = _UxGT("Resume 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_STOP_PRINT = _UxGT("Stop Print");
|
||||||
PROGMEM Language_Str MSG_PRINTING_OBJECT = _UxGT("Printing Object");
|
PROGMEM Language_Str MSG_PRINTING_OBJECT = _UxGT("Printing Object");
|
||||||
PROGMEM Language_Str MSG_CANCEL_OBJECT = _UxGT("Cancel Object");
|
PROGMEM Language_Str MSG_CANCEL_OBJECT = _UxGT("Cancel Object");
|
||||||
|
@ -54,6 +54,10 @@
|
|||||||
#include "../../feature/password/password.h"
|
#include "../../feature/password/password.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ACTION_ON_START
|
||||||
|
#include "../../feature/host_actions.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
void menu_tune();
|
void menu_tune();
|
||||||
void menu_cancelobject();
|
void menu_cancelobject();
|
||||||
void menu_motion();
|
void menu_motion();
|
||||||
@ -158,6 +162,10 @@ void menu_main() {
|
|||||||
if (TERN0(MACHINE_CAN_PAUSE, printingIsPaused()))
|
if (TERN0(MACHINE_CAN_PAUSE, printingIsPaused()))
|
||||||
ACTION_ITEM(MSG_RESUME_PRINT, ui.resume_print);
|
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);
|
SUBMENU(MSG_MOTION, menu_motion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user