remove gcode int/ext macros (unused) and repurpose type system to identify features in gcode output

This commit is contained in:
Stewart Allen 2022-01-31 09:33:10 -05:00
commit 9fd74cb27f
5 changed files with 13 additions and 25 deletions

View file

@ -26,8 +26,6 @@
gcodeFan = device.gcodeFan,
gcodeLayer = device.gcodeLayer,
gcodeTrack = device.gcodeTrack,
gcodeExt = device.gcodeExt,
gcodeInt = device.gcodeInt,
zMoveMax = device.deviceZMax || 0,
tool = 0,
fwRetract = device.fwRetract,
@ -576,16 +574,9 @@
}
}
// emit gcode macro for changed print region
// emit comment on output type chage
if (last && out.type !== last.type) {
switch (out.type) {
case 'ext':
appendAllSub(gcodeExt);
break;
case 'int':
appendAllSub(gcodeInt);
break;
}
append(`; feature ${out.type}`);
lastType = out.type;
}