From 80dbd2095a330f53391e8fd2128dc54a9969dcf1 Mon Sep 17 00:00:00 2001 From: lawgicau Date: Tue, 20 Jul 2021 15:07:00 +1000 Subject: [PATCH] Home all on delta end option #239 --- js/createform.js | 1 + js/gcodeprocessing.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/js/createform.js b/js/createform.js index 1f66f46..3e1f42a 100644 --- a/js/createform.js +++ b/js/createform.js @@ -317,6 +317,7 @@ var accel = `

Base feedrate/speed

var endGcode = `

Additional end gcode

If you have additional end commands, tick the box and enter the gcode.

+

For the majority of users, you can skip this section. Any gcode entered here will be inserted at the very end of the file.

diff --git a/js/gcodeprocessing.js b/js/gcodeprocessing.js index 12bc3f4..83e79a3 100644 --- a/js/gcodeprocessing.js +++ b/js/gcodeprocessing.js @@ -525,6 +525,10 @@ function processGcode(formName) { if(formName.end.checked == true) { gcode = gcode.replace(/;customend/, "; custom end gcode\n"+customEnd); } + if(formName.deltaHome.checked == true) { + gcode = gcode.replace(/G28 X0 ; home X axis/, "G28 ; home all on delta"); + } + // process finished gcode file downloadFile(description+'.gcode', gcode); }