diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-12-13 10:46:46 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-12-14 11:03:16 -0500 |
commit | 1dbd11446c9e105cc6788bd99c41fb58c7b0ae60 (patch) | |
tree | 7cbbc7685b991d7f0f090f1410ef274f16ca2e9c | |
parent | 74fa8a3907359a7c7e9159601b8a8c2c6b79e960 (diff) | |
download | kutter-1dbd11446c9e105cc6788bd99c41fb58c7b0ae60.tar.gz kutter-1dbd11446c9e105cc6788bd99c41fb58c7b0ae60.tar.xz kutter-1dbd11446c9e105cc6788bd99c41fb58c7b0ae60.zip |
stepcompress: Don't warn on multi-step interval=0 sequences
It is possible to get a valid multi-step sequence with an interval of
zero if the add is non-zero.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/stepcompress.c | 3 |
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++; |