fix gcode api return path
This commit is contained in:
parent
a208527d78
commit
de26819d61
2 changed files with 8 additions and 3 deletions
|
|
@ -40,12 +40,16 @@
|
|||
}
|
||||
}
|
||||
|
||||
function callExport(options, mode) {
|
||||
function callExport(callback, mode) {
|
||||
const gcode = [];
|
||||
KIRI.client.export(API.conf.get(), (line) => {
|
||||
gcode.push(line);
|
||||
}, (output) => {
|
||||
exportGCodeDialog(gcode.join('\n'), output);
|
||||
if (callback) {
|
||||
callback(gcode.join('\n'), output);
|
||||
} else {
|
||||
exportGCodeDialog(gcode.join('\n'), output);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue