Merge pull request #406 from GridSpace/laser-bugfix-4.3

Laser-bugfix-4.3
This commit is contained in:
Stewart Allen 2025-07-20 19:51:03 -07:00 • committed by GitHub
commit 562e96e776
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -507,22 +507,6 @@ const dispatch = {
send.data({debug});
});
// export in different modes, based on device type
if (mode.toUpperCase() === "LASER") {
let FExt = data.settings.device.gcodeFExt.toUpperCase();
if (FExt === "DXF"){
let dxf = driver.exportDXF(data.settings, current.print.output);
send.data({line:dxf});
} else if(FExt === "SVG") {
let svg = driver.exportSVG(data.settings, current.print.output);
send.data({line:svg});
} else {
// if not svg or dxf, default to gcode
let gcode = driver.exportGCode(data.settings, current.print.output);
send.data({line:gcode});
}
}
const {
bounds,
time,