1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 05:48:43 +00:00

Use MIN/MAX for min/max

This commit is contained in:
Scott Lahteine 2019-01-28 20:35:54 -06:00
parent 17a8c37148
commit 97da6c1da5

View File

@ -74,7 +74,7 @@ void GcodeSuite::M425() {
if (parser.seen('F')) {
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;
}