Browse Source

Use MIN/MAX for min/max

pull/1/head
Scott Lahteine 6 years ago
parent
commit
97da6c1da5
  1. 2
      Marlin/src/gcode/calibrate/M425.cpp

2
Marlin/src/gcode/calibrate/M425.cpp

@ -74,7 +74,7 @@ void GcodeSuite::M425() {
if (parser.seen('F')) { if (parser.seen('F')) {
planner.synchronize(); planner.synchronize();
backlash_correction = max(0, min(1.0, parser.value_linear_units())); backlash_correction = MAX(0, MIN(1.0, parser.value_linear_units()));
noArgs = false; noArgs = false;
} }

Loading…
Cancel
Save