Shutdown Host Action (#22908)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
aalku
2021-10-30 07:17:20 +02:00
committed by Scott Lahteine
parent 8562f0ec44
commit 7b9e01eb2b
12 changed files with 40 additions and 23 deletions

View File

@ -80,6 +80,10 @@ void HostUI::action(FSTR_P const fstr, const bool eol) {
#endif
#endif
#ifdef SHUTDOWN_ACTION
void HostUI::shutdown() { action(F(SHUTDOWN_ACTION)); }
#endif
#if ENABLED(HOST_PROMPT_SUPPORT)
PromptReason HostUI::host_prompt_reason = PROMPT_NOT_DEFINED;

View File

@ -71,6 +71,9 @@ class HostUI {
#ifdef ACTION_ON_START
static void start();
#endif
#ifdef SHUTDOWN_ACTION
static void shutdown();
#endif
#if ENABLED(G29_RETRY_AND_RECOVER)
#ifdef ACTION_ON_G29_RECOVER