Преглед изворни кода

Remove unused queue.stopped_N (#16850)

Robby Candra пре 5 година
родитељ
комит
af84e362cc
No account linked to committer's email address
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
   #endif
798
   #endif
799
 
799
 
800
   if (IsRunning()) {
800
   if (IsRunning()) {
801
-    queue.stop();
802
     SERIAL_ERROR_MSG(MSG_ERR_STOPPED);
801
     SERIAL_ERROR_MSG(MSG_ERR_STOPPED);
803
     LCD_MESSAGEPGM(MSG_STOPPED);
802
     LCD_MESSAGEPGM(MSG_STOPPED);
804
     safe_delay(350);       // allow enough time for messages to get out before stopping
803
     safe_delay(350);       // allow enough time for messages to get out before stopping

+ 1
- 1
Marlin/src/gcode/queue.cpp Прегледај датотеку

52
  * sending commands to Marlin, and lines will be checked for sequentiality.
52
  * sending commands to Marlin, and lines will be checked for sequentiality.
53
  * M110 N<int> sets the current line number.
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
  * GCode Command Queue
58
  * GCode Command Queue

+ 1
- 3
Marlin/src/gcode/queue.h Прегледај датотеку

35
    * commands to Marlin, and lines will be checked for sequentiality.
35
    * commands to Marlin, and lines will be checked for sequentiality.
36
    * M110 N<int> sets the current line number.
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
    * GCode Command Queue
41
    * GCode Command Queue

Loading…
Откажи
Сачувај