From f6858d997464e5825fd61a79101d5a80e14ed5c7 Mon Sep 17 00:00:00 2001 From: AnHardt Date: Fri, 13 Jan 2017 12:19:16 +0100 Subject: [PATCH] Fix M110 without leading N Store N in the right variable. This is too rarely used. "mea culpa, mea culpa, mea maxima culpa" --- Marlin/Marlin_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index c78f51797..497deea5f 100755 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -330,7 +330,7 @@ bool axis_homed[XYZ] = { false }, axis_known_position[XYZ] = { false }; /** * GCode line number handling. Hosts may opt to include line numbers when * sending commands to Marlin, and lines will be checked for sequentiality. - * M110 S sets the current line number. + * M110 N sets the current line number. */ static long gcode_N, gcode_LastN, Stopped_gcode_LastN = 0; @@ -5680,7 +5680,7 @@ inline void gcode_M109() { * M110: Set Current Line Number */ inline void gcode_M110() { - if (code_seen('N')) gcode_N = code_value_long(); + if (code_seen('N')) gcode_LastN = code_value_long(); } /**