diff --git a/Marlin/src/MarlinCore.cpp b/Marlin/src/MarlinCore.cpp index f439fb73a8..ecfdcc21b3 100644 --- a/Marlin/src/MarlinCore.cpp +++ b/Marlin/src/MarlinCore.cpp @@ -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 diff --git a/Marlin/src/gcode/queue.cpp b/Marlin/src/gcode/queue.cpp index dbef8d2332..4d0861c2bc 100644 --- a/Marlin/src/gcode/queue.cpp +++ b/Marlin/src/gcode/queue.cpp @@ -52,7 +52,7 @@ GCodeQueue queue; * sending commands to Marlin, and lines will be checked for sequentiality. * M110 N sets the current line number. */ -long gcode_N, GCodeQueue::last_N, GCodeQueue::stopped_N = 0; +long gcode_N, GCodeQueue::last_N; /** * GCode Command Queue diff --git a/Marlin/src/gcode/queue.h b/Marlin/src/gcode/queue.h index 11d4130349..10b0ec7643 100644 --- a/Marlin/src/gcode/queue.h +++ b/Marlin/src/gcode/queue.h @@ -35,9 +35,7 @@ public: * commands to Marlin, and lines will be checked for sequentiality. * M110 N 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