Multiply by float, not double

2.0.x
Scott Lahteine 5 years ago
parent 74746c6573
commit f307ff68f7

@ -176,7 +176,7 @@ void GcodeSuite::M48() {
// If we have gone out too far, we can do a simple fix and scale the numbers // If we have gone out too far, we can do a simple fix and scale the numbers
// back in closer to the origin. // back in closer to the origin.
while (!position_is_reachable_by_probe(next_pos)) { while (!position_is_reachable_by_probe(next_pos)) {
next_pos *= 0.8; next_pos *= 0.8f;
if (verbose_level > 3) if (verbose_level > 3)
SERIAL_ECHOLNPAIR("Moving inward: X", next_pos.x, " Y", next_pos.y); SERIAL_ECHOLNPAIR("Moving inward: X", next_pos.x, " Y", next_pos.y);
} }

Loading…
Cancel
Save