Browse Source

Fix bool in M851

pull/1/head
Scott Lahteine 5 years ago
parent
commit
25c4c2f24e
  1. 4
      Marlin/src/gcode/probe/M851.cpp

4
Marlin/src/gcode/probe/M851.cpp

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

Loading…
Cancel
Save