浏览代码

Remove unused queue.stopped_N (#16850)

Robby Candra 5 年前
父节点
当前提交
af84e362cc
没有帐户链接到提交者的电子邮件
共有 3 个文件被更改,包括 2 次插入5 次删除
  1. 0
    1
      Marlin/src/MarlinCore.cpp
  2. 1
    1
      Marlin/src/gcode/queue.cpp
  3. 1
    3
      Marlin/src/gcode/queue.h

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

@@ -798,7 +798,6 @@ void stop() {
798 798
   #endif
799 799
 
800 800
   if (IsRunning()) {
801
-    queue.stop();
802 801
     SERIAL_ERROR_MSG(MSG_ERR_STOPPED);
803 802
     LCD_MESSAGEPGM(MSG_STOPPED);
804 803
     safe_delay(350);       // allow enough time for messages to get out before stopping

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

@@ -52,7 +52,7 @@ GCodeQueue queue;
52 52
  * sending commands to Marlin, and lines will be checked for sequentiality.
53 53
  * M110 N<int> sets the current line number.
54 54
  */
55
-long gcode_N, GCodeQueue::last_N, GCodeQueue::stopped_N = 0;
55
+long gcode_N, GCodeQueue::last_N;
56 56
 
57 57
 /**
58 58
  * GCode Command Queue

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

@@ -35,9 +35,7 @@ public:
35 35
    * commands to Marlin, and lines will be checked for sequentiality.
36 36
    * M110 N<int> sets the current line number.
37 37
    */
38
-  static long last_N, stopped_N;
39
-
40
-  static inline void stop() { stopped_N = last_N; }
38
+  static long last_N;
41 39
 
42 40
   /**
43 41
    * GCode Command Queue

正在加载...
取消
保存