Skip to content
Permalink
Browse files

use settings when generating GCode

now uses gcode.start for beginning of generated gcode and gcode.end at the end
  • Loading branch information...
Adukra committed Sep 7, 2018
1 parent c818e76 commit c648543123143c318caa3fc8281562383c9b7150
Showing with 6 additions and 2 deletions.
  1. +6 −2 js/main.js
@@ -778,7 +778,9 @@ function slice() {
function endSlicing() {

if(WOWExport) {// GCode & export logic
wowFile += "M106 S0;\nG1 Z20.0;\nG4 S300;\nM18;"
// add gcode footer from settings
var gcode = settings.get('gcode');
wowFile += gcode.end;

zipFile.file("print.wow", wowFile, {binary: true});

@@ -864,7 +866,9 @@ function startSlicing() {
*/
//console.log(textDecoder.encode(binary_layer));

wowFile += "G21;\nG91;\nM17;\nM106 S0;\nG28 Z0;\n;W:480;\n;H:854;\n"
// use gcode header from settings
var gcode = settings.get('gcode');
wowFile += gcode.start;
}

slicesNumber && slice();

0 comments on commit c648543

Please sign in to comment.
You can’t perform that action at this time.