Add Host Prompt Notification Method (#15942)

This commit is contained in:
InsanityAutomation
2019-12-01 18:39:28 -05:00
committed by Scott Lahteine
parent c061656659
commit 7126a5e5a7
4 changed files with 58 additions and 9 deletions

View File

@ -72,6 +72,12 @@ void host_action(const char * const pstr, const bool eol) {
PromptReason host_prompt_reason = PROMPT_NOT_DEFINED;
void host_action_notify(const char * const message) {
host_action(PSTR("notification "), false);
serialprintPGM(message);
SERIAL_EOL();
}
void host_action_prompt(const char * const ptype, const bool eol=true) {
host_action(PSTR("prompt_"), false);
serialprintPGM(ptype);

View File

@ -60,6 +60,7 @@ void host_action(const char * const pstr, const bool eol=true);
extern PromptReason host_prompt_reason;
void host_response_handler(const uint8_t response);
void host_action_notify(const char * const message);
void host_action_prompt_begin(const char * const pstr, const bool eol=true);
void host_action_prompt_button(const char * const pstr);
void host_action_prompt_end();