Parcourir la source

Fix M110 without leading N

Store N in the right variable.
This is too rarely used.

"mea culpa, mea culpa, mea maxima culpa"
AnHardt il y a 8 ans
Parent
révision
f6858d9974
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp Voir le fichier

330
 /**
330
 /**
331
  * GCode line number handling. Hosts may opt to include line numbers when
331
  * GCode line number handling. Hosts may opt to include line numbers when
332
  * sending commands to Marlin, and lines will be checked for sequentiality.
332
  * sending commands to Marlin, and lines will be checked for sequentiality.
333
- * M110 S<int> sets the current line number.
333
+ * M110 N<int> sets the current line number.
334
  */
334
  */
335
 static long gcode_N, gcode_LastN, Stopped_gcode_LastN = 0;
335
 static long gcode_N, gcode_LastN, Stopped_gcode_LastN = 0;
336
 
336
 
5680
  * M110: Set Current Line Number
5680
  * M110: Set Current Line Number
5681
  */
5681
  */
5682
 inline void gcode_M110() {
5682
 inline void gcode_M110() {
5683
-  if (code_seen('N')) gcode_N = code_value_long();
5683
+  if (code_seen('N')) gcode_LastN = code_value_long();
5684
 }
5684
 }
5685
 
5685
 
5686
 /**
5686
 /**

Chargement…
Annuler
Enregistrer