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...
Charles R 11 years ago
parent
commit
c244eb860c
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      Marlin/Marlin_main.cpp

+ 9
- 0
Marlin/Marlin_main.cpp View File

@@ -1825,6 +1825,15 @@ void process_commands()
1825 1825
       case 80: // M80 - Turn on Power Supply
1826 1826
         SET_OUTPUT(PS_ON_PIN); //GND
1827 1827
         WRITE(PS_ON_PIN, PS_ON_AWAKE);
1828
+
1829
+        // If you have a switch on suicide pin, this is useful
1830
+        // if you want to start another print with suicide feature after
1831
+        // a print without suicide...
1832
+        #if defined SUICIDE_PIN && SUICIDE_PIN > -1
1833
+            SET_OUTPUT(SUICIDE_PIN);
1834
+            WRITE(SUICIDE_PIN, HIGH);
1835
+        #endif
1836
+        
1828 1837
         #ifdef ULTIPANEL
1829 1838
           powersupply = true;
1830 1839
           LCD_MESSAGEPGM(WELCOME_MSG);

Loading…
Cancel
Save