Quellcode durchsuchen

Fix bool in M851

Scott Lahteine vor 5 Jahren
Ursprung
Commit
25c4c2f24e
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2
    2
      Marlin/src/gcode/probe/M851.cpp

+ 2
- 2
Marlin/src/gcode/probe/M851.cpp Datei anzeigen

@@ -35,13 +35,13 @@ void GcodeSuite::M851() {
35 35
 
36 36
   // Show usage with no parameters
37 37
   if (!parser.seen("XYZ")) {
38
-    SERIAL_ECHO_MSG(MSG_PROBE_OFFSET " X", probe_offset[X_AXIS], " Y", probe_offset[Y_AXIS], " Z", probe_offset[Z_AXIS]);
38
+    SERIAL_ECHOLNPAIR(MSG_PROBE_OFFSET " X", probe_offset[X_AXIS], " Y", probe_offset[Y_AXIS], " Z", probe_offset[Z_AXIS]);
39 39
     return;
40 40
   }
41 41
 
42 42
   float offs[XYZ] = { probe_offset[X_AXIS], probe_offset[Y_AXIS], probe_offset[Z_AXIS] };
43 43
 
44
-  const bool ok = true;
44
+  bool ok = true;
45 45
 
46 46
   if (parser.seenval('X')) {
47 47
     const float x = parser.value_float();

Laden…
Abbrechen
Speichern