Replace MIN# / MAX# with variadic MIN / MAX (#11960)

This commit is contained in:
AnoNymous
2018-09-30 11:59:14 +02:00
committed by Scott Lahteine
parent e10f730478
commit b30ca652ae
9 changed files with 91 additions and 69 deletions

View File

@ -651,7 +651,7 @@ void GcodeSuite::G33() {
}
// adjust delta_height and endstops by the max amount
const float z_temp = MAX3(delta_endstop_adj[A_AXIS], delta_endstop_adj[B_AXIS], delta_endstop_adj[C_AXIS]);
const float z_temp = MAX(delta_endstop_adj[A_AXIS], delta_endstop_adj[B_AXIS], delta_endstop_adj[C_AXIS]);
delta_height -= z_temp;
LOOP_XYZ(axis) delta_endstop_adj[axis] -= z_temp;
}