From c244eb860c0d3b6bfd3f9269bc370b9761e03417 Mon Sep 17 00:00:00 2001 From: Charles R Date: Mon, 4 Nov 2013 12:04:04 +0100 Subject: [PATCH] If you have a switch on suicide pin, this is useful if you want to start another print with suicide feature after a print without suicide... --- Marlin/Marlin_main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index fc53ebacd..c22133a46 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -1825,6 +1825,15 @@ void process_commands() case 80: // M80 - Turn on Power Supply SET_OUTPUT(PS_ON_PIN); //GND WRITE(PS_ON_PIN, PS_ON_AWAKE); + + // If you have a switch on suicide pin, this is useful + // if you want to start another print with suicide feature after + // a print without suicide... + #if defined SUICIDE_PIN && SUICIDE_PIN > -1 + SET_OUTPUT(SUICIDE_PIN); + WRITE(SUICIDE_PIN, HIGH); + #endif + #ifdef ULTIPANEL powersupply = true; LCD_MESSAGEPGM(WELCOME_MSG);