Cast DELTA_PRINTABLE_RADIUS to float in sq()

Addressing #5625
This commit is contained in:
Scott Lahteine
2017-02-11 18:04:32 -06:00
parent 1e4d4e5915
commit 1bc5be3bdf
2 changed files with 2 additions and 2 deletions

View File

@ -1554,7 +1554,7 @@ KeepDrawing:
// This assumes the center is 0,0
#if ENABLED(DELTA)
if (axis != Z_AXIS) {
max = sqrt(sq(DELTA_PRINTABLE_RADIUS) - sq(current_position[Y_AXIS - axis]));
max = sqrt(sq((float)(DELTA_PRINTABLE_RADIUS)) - sq(current_position[Y_AXIS - axis]));
min = -max;
}
#endif