Browse Source

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...
pull/1/head
Charles R 11 years ago
parent
commit
c244eb860c
  1. 9
      Marlin/Marlin_main.cpp

9
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);

Loading…
Cancel
Save