checkpoint sla work
This commit is contained in:
parent
627193b645
commit
c2361b2299
6 changed files with 122 additions and 11 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue