浏览代码

Fix M112 with Emergency Parser

Scott Lahteine 5 年前
父节点
当前提交
79c2f05e7d
共有 4 个文件被更改,包括 4 次插入3 次删除
  1. 1
    0
      Marlin/src/MarlinCore.cpp
  2. 1
    1
      Marlin/src/MarlinCore.h
  3. 1
    1
      Marlin/src/gcode/control/M108_M112_M410.cpp
  4. 1
    1
      Marlin/src/gcode/queue.cpp

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

182
 #endif
182
 #endif
183
 
183
 
184
 const char NUL_STR[] PROGMEM = "",
184
 const char NUL_STR[] PROGMEM = "",
185
+           M112_KILL_STR[] PROGMEM = "M112 Shutdown",
185
            G28_STR[] PROGMEM = "G28",
186
            G28_STR[] PROGMEM = "G28",
186
            M21_STR[] PROGMEM = "M21",
187
            M21_STR[] PROGMEM = "M21",
187
            M23_STR[] PROGMEM = "M23 %s",
188
            M23_STR[] PROGMEM = "M23 %s",

+ 1
- 1
Marlin/src/MarlinCore.h 查看文件

120
   void event_probe_failure();
120
   void event_probe_failure();
121
 #endif
121
 #endif
122
 
122
 
123
-extern const char NUL_STR[], G28_STR[], M21_STR[], M23_STR[], M24_STR[],
123
+extern const char NUL_STR[], M112_KILL_STR[], G28_STR[], M21_STR[], M23_STR[], M24_STR[],
124
                   SP_X_STR[], SP_Y_STR[], SP_Z_STR[], SP_E_STR[];
124
                   SP_X_STR[], SP_Y_STR[], SP_Z_STR[], SP_E_STR[];

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

41
  * M112: Full Shutdown
41
  * M112: Full Shutdown
42
  */
42
  */
43
 void GcodeSuite::M112() {
43
 void GcodeSuite::M112() {
44
-  kill(PSTR("M112 Shutdown"), nullptr, true);
44
+  kill(M112_KILL_STR, nullptr, true);
45
 }
45
 }
46
 
46
 
47
 /**
47
 /**

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

440
               wait_for_user = false;
440
               wait_for_user = false;
441
             #endif
441
             #endif
442
           }
442
           }
443
-          if (strcmp(command, "M112") == 0) kill();
443
+          if (strcmp(command, "M112") == 0) kill(M112_KILL_STR, nullptr, true);
444
           if (strcmp(command, "M410") == 0) quickstop_stepper();
444
           if (strcmp(command, "M410") == 0) quickstop_stepper();
445
         #endif
445
         #endif
446
 
446
 

正在加载...
取消
保存