aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepcompress.c
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/stepcompress.c')
-rw-r--r--klippy/stepcompress.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/stepcompress.c b/klippy/stepcompress.c
index b29382c9..42dad243 100644
--- a/klippy/stepcompress.c
+++ b/klippy/stepcompress.c
@@ -226,7 +226,8 @@ check_line(struct stepcompress *sc, struct step_move move)
return;
}
int err = 0;
- if (!move.count || !move.interval || move.interval >= 0x80000000) {
+ if (!move.count || (!move.interval && !move.add)
+ || move.interval >= 0x80000000) {
errorf("Point out of range: %d %d %d"
, move.interval, move.count, move.add);
err++;