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>
This commit is contained in:
Kevin O'Connor 2016-12-13 10:46:46 -05:00
parent 74fa8a3907
commit 1dbd11446c
1 changed files with 2 additions and 1 deletions

View File

@ -226,7 +226,8 @@ check_line(struct stepcompress *sc, struct step_move move)
return; return;
} }
int err = 0; 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" errorf("Point out of range: %d %d %d"
, move.interval, move.count, move.add); , move.interval, move.count, move.add);
err++; err++;