浏览代码

Move disable_all_steppers to minkill

Scott Lahteine 6 年前
父节点
当前提交
8c02dd971b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/src/Marlin.cpp

+ 1
- 1
Marlin/src/Marlin.cpp 查看文件

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

正在加载...
取消
保存