Merge pull request #7217 from benlye/add-kill-action
Add configurable action command to send when printer is killed
This commit is contained in:
commit
a2babb532d
27 changed files with 186 additions and 0 deletions
|
|
@ -12839,6 +12839,10 @@ void kill(const char* lcd_msg) {
|
|||
_delay_ms(250); //Wait to ensure all interrupts routines stopped
|
||||
thermalManager.disable_all_heaters(); //turn off heaters again
|
||||
|
||||
#if defined(ACTION_ON_KILL)
|
||||
SERIAL_ECHOLNPGM("//action:" ACTION_ON_KILL);
|
||||
#endif
|
||||
|
||||
#if HAS_POWER_SWITCH
|
||||
SET_INPUT(PS_ON_PIN);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue