clamp single trace to z top/bottom

This commit is contained in:
Stewart Allen 2025-12-07 22:11:04 -05:00
commit 8bca0a949a
2 changed files with 16 additions and 2 deletions

View file

@ -454,6 +454,7 @@ export async function prepare_one(widget, settings, print, firstPoint, update) {
if (isMove && deltaXY <= shortCut && deltaZ <= 0 && !lasering) {
// but only if the z plunge is not too far
if (absDeltaZ < 0.01 || (tolerance > 0 && absDeltaZ <= tolerance)) {
if (debug) console.log('shortcut', { deltaXY, deltaZ, shortCut });
emit = 1;
} else
// otherwise move over before descending