Browse Source

Move disable_all_steppers to minkill

Scott Lahteine 6 years ago
parent
commit
8c02dd971b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/Marlin.cpp

+ 1
- 1
Marlin/src/Marlin.cpp View File

612
 void kill(PGM_P const lcd_msg/*=NULL*/) {
612
 void kill(PGM_P const lcd_msg/*=NULL*/) {
613
 
613
 
614
   thermalManager.disable_all_heaters();
614
   thermalManager.disable_all_heaters();
615
-  disable_all_steppers();
616
 
615
 
617
   SERIAL_ERROR_START();
616
   SERIAL_ERROR_START();
618
   SERIAL_ERRORLNPGM(MSG_ERR_KILLED);
617
   SERIAL_ERRORLNPGM(MSG_ERR_KILLED);
638
   cli();           // Stop interrupts
637
   cli();           // Stop interrupts
639
   _delay_ms(250);  // Wait to ensure all interrupts stopped
638
   _delay_ms(250);  // Wait to ensure all interrupts stopped
640
 
639
 
640
+  disable_all_steppers();
641
   thermalManager.disable_all_heaters(); // turn off heaters again
641
   thermalManager.disable_all_heaters(); // turn off heaters again
642
 
642
 
643
   #if HAS_POWER_SWITCH
643
   #if HAS_POWER_SWITCH

Loading…
Cancel
Save