Merge pull request #7217 from benlye/add-kill-action

Add configurable action command to send when printer is killed
This commit is contained in:
Scott Lahteine
2017-07-04 16:44:08 -05:00
committed by GitHub
27 changed files with 186 additions and 0 deletions

View File

@@ -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