1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00

Turn off power supply off-load

Disable the high current output and wait a little before to turn off,
because the interrupting capacity of the PSU is unknown.
Could be a function if needed by other.
This commit is contained in:
Nicolas Rossi 2013-03-05 15:03:48 +01:00
parent 86bf911139
commit 6504e96165

View File

@ -1156,7 +1156,14 @@ void process_commands()
#endif
case 81: // M81 - Turn off Power Supply
disable_heater();
st_synchronize();
disable_e0();
disable_e1();
disable_e2();
finishAndDisableSteppers();
fanSpeed = 0;
delay(1000); // Wait a little before to switch off
#if defined SUICIDE_PIN && SUICIDE_PIN > -1
st_synchronize();
suicide();