Remote streamer improvements (#12982)
This commit is contained in:
committed by
Scott Lahteine
parent
621fbe99de
commit
48a3502656
@ -311,6 +311,38 @@ void disable_all_steppers() {
|
||||
disable_e_steppers();
|
||||
}
|
||||
|
||||
#if HAS_ACTION_COMMANDS
|
||||
|
||||
void host_action(const char * const pstr, const bool eol=true) {
|
||||
SERIAL_ECHOPGM("//action:");
|
||||
serialprintPGM(pstr);
|
||||
if (eol) SERIAL_EOL();
|
||||
}
|
||||
|
||||
#ifdef ACTION_ON_KILL
|
||||
void host_action_kill() { host_action(PSTR(ACTION_ON_KILL)); }
|
||||
#endif
|
||||
#ifdef ACTION_ON_PAUSE
|
||||
void host_action_pause() { host_action(PSTR(ACTION_ON_PAUSE)); }
|
||||
#endif
|
||||
#ifdef ACTION_ON_PAUSED
|
||||
void host_action_paused() { host_action(PSTR(ACTION_ON_PAUSED)); }
|
||||
#endif
|
||||
#ifdef ACTION_ON_RESUME
|
||||
void host_action_resume() { host_action(PSTR(ACTION_ON_RESUME)); }
|
||||
#endif
|
||||
#ifdef ACTION_ON_RESUMED
|
||||
void host_action_resumed() { host_action(PSTR(ACTION_ON_RESUMED)); }
|
||||
#endif
|
||||
#ifdef ACTION_ON_CANCEL
|
||||
void host_action_cancel() { host_action(PSTR(ACTION_ON_CANCEL)); }
|
||||
#endif
|
||||
#ifdef ACTION_ON_FILAMENT_RUNOUT
|
||||
void host_action_filament_runout(const bool eol/*=true*/) { host_action(PSTR(ACTION_ON_FILAMENT_RUNOUT), eol); }
|
||||
#endif
|
||||
|
||||
#endif // HAS_ACTION_COMMANDS
|
||||
|
||||
/**
|
||||
* Manage several activities:
|
||||
* - Check for Filament Runout
|
||||
@ -618,7 +650,7 @@ void kill(PGM_P const lcd_msg/*=NULL*/) {
|
||||
#endif
|
||||
|
||||
#ifdef ACTION_ON_KILL
|
||||
SERIAL_ECHOLNPGM("//action:" ACTION_ON_KILL);
|
||||
host_action_kill();
|
||||
#endif
|
||||
|
||||
minkill();
|
||||
|
Reference in New Issue
Block a user