Merge pull request #7217 from benlye/add-kill-action
Add configurable action command to send when printer is killed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user