aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepcompress.c
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/stepcompress.c')
-rw-r--r--klippy/stepcompress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/stepcompress.c b/klippy/stepcompress.c
index eb9abf2c..0ae3bd57 100644
--- a/klippy/stepcompress.c
+++ b/klippy/stepcompress.c
@@ -202,7 +202,7 @@ compress_bisect_add(struct stepcompress *sc)
// Bisect valid add range and try again with new 'add'
if (minadd > maxadd)
break;
- add = (minadd + maxadd) / 2;
+ add = maxadd - (maxadd - minadd) / 4;
}
return (struct step_move){ bestinterval, bestcount, bestadd };
}