checkpoint palette3 and purge tower work
This commit is contained in:
parent
b1d9537982
commit
7306ef5c0c
7 changed files with 96 additions and 26 deletions
|
|
@ -268,11 +268,16 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
if (extrudeAbs && line.indexOf('E') > 0) {
|
||||
if (line.indexOf('E') > 0) {
|
||||
line.split(";")[0].split(' ').forEach(function (tok) {
|
||||
// use max E position from gcode-preamble
|
||||
if (tok[0] == 'E') {
|
||||
outputLength = Math.max(outputLength, parseFloat(tok.substring(1)) || 0);
|
||||
if (extrudeAbs) {
|
||||
outputLength = Math.max(outputLength, parseFloat(tok.substring(1)) || 0);
|
||||
emitted = outputLength;
|
||||
} else {
|
||||
emitted += parseFloat(tok.substring(1) || 0);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue