Fix ambiguous type
Co-Authored-By: Andrew Kroll <xxxajk@gmail.com>
This commit is contained in:
parent
af23c0480e
commit
5aa528781f
1 changed files with 1 additions and 1 deletions
|
@ -622,7 +622,7 @@ void restore_feedrate_and_scaling() {
|
||||||
) {
|
) {
|
||||||
const float dist_2 = HYPOT2(target.x - offs.x, target.y - offs.y);
|
const float dist_2 = HYPOT2(target.x - offs.x, target.y - offs.y);
|
||||||
if (dist_2 > delta_max_radius_2)
|
if (dist_2 > delta_max_radius_2)
|
||||||
target *= delta_max_radius / SQRT(dist_2); // 200 / 300 = 0.66
|
target *= float(delta_max_radius / SQRT(dist_2)); // 200 / 300 = 0.66
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
Reference in a new issue