Protect lasers from running when coolers are stopped

parent 181e4039
......@@ -5395,6 +5395,12 @@ inline void gcode_M81() {
#if ENABLED(LASERBEAM)
laser_ttl_modulation = 0;
#endif
#ifdef LASER
laser_extinguish();
#endif
#ifdef LASER_PERIPHERALS
laser_peripherals_off();
#endif
delay_ms(1000); // Wait 1 second before switching off
#if HAS(SUICIDE)
st_synchronize();
......
......@@ -1653,6 +1653,14 @@ void disable_all_heaters() {
void disable_all_coolers() {
setTargetCooler(0);
// if cooler go down the print job is stopped
print_job_timer.stop();
#if ENABLED(LASER)
// No laser firing with no coolers running! (paranoia)
laser_extinguish();
#endif
#if HAS(TEMP_COOLER)
target_temperature_cooler = 0;
setPwmCooler(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment