Add kill action

Sends pre-defined string as action command when printer is kill.
This commit is contained in:
Ben Lye 2017-07-02 09:44:24 +01:00 committed by benlye
parent 395a9f59ac
commit c28749a567
27 changed files with 186 additions and 0 deletions

View file

@ -12836,6 +12836,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