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:
parent
74fa8a3907
commit
1dbd11446c
|
@ -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++;
|
||||||
|
|
Loading…
Reference in New Issue