checkpoint sla work

This commit is contained in:
Stewart Allen 2020-04-14 09:26:59 -04:00
commit c2361b2299
6 changed files with 122 additions and 11 deletions

View file

@ -29,13 +29,26 @@ let gs_kiri_export = exports;
case 'LASER': return exportPrintLaser(currentPrint);
case 'FDM': return exportPrintGCODE(currentPrint);
case 'CAM': return exportPrintGCODE(currentPrint);
case 'SLA': return KIRI.driver.SLA.printDownload(API,currentPrint);
case 'SLA': return exportPrintSLA(currentPrint);
}
} else {
API.function.print(exportPrint);
}
}
function exportPrintSLA(currentPrint) {
if (currentPrint) {
let lines = [];
currentPrint.export(true, function(line) {
lines.push(line);
}, function(done) {
KIRI.driver.SLA.printDownload(API, lines, done);
});
} else {
API.function.print(exportPrintSLA);
}
}
function exportPrintGCODE(currentPrint) {
if (currentPrint) {
currentPrint.exportGCode(true, function(gcode) {