Add HOST_PROMPT_SUPPORT (#13039)

This commit is contained in:
InsanityAutomation
2019-02-12 16:55:47 -05:00
committed by Scott Lahteine
parent 0feeef2604
commit 7f1b69b0c8
189 changed files with 2076 additions and 3479 deletions

View File

@@ -42,6 +42,10 @@
#include "../queue.h"
#endif
#if ENABLED(HOST_ACTION_COMMANDS)
#include "../../feature/host_actions.h"
#endif
/**
* M20: List SD card to serial output
*/
@@ -103,8 +107,13 @@ void GcodeSuite::M24() {
print_job_timer.start();
}
#ifdef ACTION_ON_RESUME
host_action_resume();
#if ENABLED(HOST_ACTION_COMMANDS)
#if ENABLED(HOST_PROMPT_SUPPORT)
host_prompt_open(PROMPT_INFO, PSTR("Resume SD"));
#endif
#ifdef ACTION_ON_RESUME
host_action_resume();
#endif
#endif
ui.reset_status();
@@ -121,14 +130,23 @@ void GcodeSuite::M25() {
#endif
#if ENABLED(PARK_HEAD_ON_PAUSE)
M125();
#else
print_job_timer.pause();
ui.reset_status();
#ifdef ACTION_ON_PAUSE
host_action_pause();
#if ENABLED(HOST_ACTION_COMMANDS)
#if ENABLED(HOST_PROMPT_SUPPORT)
host_prompt_open(PROMPT_PAUSE_RESUME, PSTR("Pause SD"), PSTR("Resume"));
#endif
#ifdef ACTION_ON_PAUSE
host_action_pause();
#endif
#endif
#endif
}