Add Klipper BED_MESH_CALIBRATE as abl option

Avoids the need for a G29 macro.
This commit is contained in:
teachingtechYT
2023-07-06 09:05:19 +10:00
parent b8e5a614dd
commit e1859dc969
2 changed files with 4 additions and 0 deletions

View File

@ -234,6 +234,7 @@ var abl = /*html*/ `<h4>Auto Bed Levelling</h4>
<select name="abl">
<option value="0">No ABL</option>
<option value="1">Probe new mesh at the start of print - G29 (BLtouch,EZABL,etc)</option>
<option value="8">Probe new mesh at the start of print (Klipper) - BED_MESH_CALIBRATE</option>
<option value="2">Restore saved ABL/manual mesh - M420 S1</option>
<option value="3">Prusa MK3 - G28 W followed by G80</option>
<option value="4">Prusa Mini - Only heat nozzle to 170, then G29</option>

View File

@ -387,6 +387,9 @@ function processGcode(formName) {
if(abl == 7){
gcode = gcode.replace(/;G29 ; probe ABL/, "G29 L2 ; Load the mesh stored in slot 1\nG29 J ; Probe 3 points to tilt mesh");
}
if(abl == 8){
gcode = gcode.replace(/;G29 ; probe ABL/, "BED_MESH_CALIBRATE ; Klipper equivalent of G29");
}
// firstlayer test square array
if(name == "firstlayerForm"){
var squares = "";