Skip to content

Commit

Permalink
Remove unused queue.stopped_N (#16850)
Browse files Browse the repository at this point in the history
  • Loading branch information
robbycandra authored Feb 14, 2020
1 parent 082117c commit af84e36
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion Marlin/src/MarlinCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,6 @@ void stop() {
#endif

if (IsRunning()) {
queue.stop();
SERIAL_ERROR_MSG(MSG_ERR_STOPPED);
LCD_MESSAGEPGM(MSG_STOPPED);
safe_delay(350); // allow enough time for messages to get out before stopping
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/gcode/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ GCodeQueue queue;
* sending commands to Marlin, and lines will be checked for sequentiality.
* M110 N<int> sets the current line number.
*/
long gcode_N, GCodeQueue::last_N, GCodeQueue::stopped_N = 0;
long gcode_N, GCodeQueue::last_N;

/**
* GCode Command Queue
Expand Down
4 changes: 1 addition & 3 deletions Marlin/src/gcode/queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ class GCodeQueue {
* commands to Marlin, and lines will be checked for sequentiality.
* M110 N<int> sets the current line number.
*/
static long last_N, stopped_N;

static inline void stop() { stopped_N = last_N; }
static long last_N;

/**
* GCode Command Queue
Expand Down

0 comments on commit af84e36

Please sign in to comment.