Browse Source

Fix ambiguous type

Co-Authored-By: Andrew Kroll <xxxajk@gmail.com>
Scott Lahteine 4 years ago
parent
commit
5aa528781f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/module/motion.cpp

+ 1
- 1
Marlin/src/module/motion.cpp View File

@@ -622,7 +622,7 @@ void restore_feedrate_and_scaling() {
622 622
       ) {
623 623
         const float dist_2 = HYPOT2(target.x - offs.x, target.y - offs.y);
624 624
         if (dist_2 > delta_max_radius_2)
625
-          target *= delta_max_radius / SQRT(dist_2); // 200 / 300 = 0.66
625
+          target *= float(delta_max_radius / SQRT(dist_2)); // 200 / 300 = 0.66
626 626
       }
627 627
 
628 628
     #else

Loading…
Cancel
Save