codec issues with float32. fix gcode parsing when layer hints missing

This commit is contained in:
Stewart Allen 2020-11-17 15:43:56 -05:00
commit 0611709c58
4 changed files with 58 additions and 20 deletions

View file

@ -178,8 +178,9 @@
// non-move in a new plane means burp out
// the old sequence and start a new one
if (seq.Z != pos.Z) {
const nh = (defh || pos.Z - seq.Z);
seq = [];
seq.height = height = (defh || pos.Z - seq.Z);
seq.height = height = nh;
if (fdm) dz = -height / 2;
output.push(seq);
}