mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Use multiply for delta probe constraint
This commit is contained in:
parent
4ea447959e
commit
a2cb0a3d54
@ -5692,8 +5692,8 @@ inline void gcode_M42() {
|
|||||||
// 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 (HYPOT(X_current, Y_current) > DELTA_PROBEABLE_RADIUS) {
|
while (HYPOT(X_current, Y_current) > DELTA_PROBEABLE_RADIUS) {
|
||||||
X_current /= 1.25;
|
X_current *= 0.8;
|
||||||
Y_current /= 1.25;
|
Y_current *= 0.8;
|
||||||
if (verbose_level > 3) {
|
if (verbose_level > 3) {
|
||||||
SERIAL_ECHOPAIR("Pulling point towards center:", X_current);
|
SERIAL_ECHOPAIR("Pulling point towards center:", X_current);
|
||||||
SERIAL_ECHOLNPAIR(", ", Y_current);
|
SERIAL_ECHOLNPAIR(", ", Y_current);
|
||||||
|
Loading…
Reference in New Issue
Block a user