From e8f41c9aa31cb1bf3ec6ee0de198738bd76779a3 Mon Sep 17 00:00:00 2001 From: teachingtechYT Date: Mon, 2 Aug 2021 09:52:28 +1000 Subject: [PATCH] =?UTF-8?q?Fix=20=C3=BAndefined'text=20in=20firstlayer=20t?= =?UTF-8?q?est?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #340 --- js/gcodeprocessing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/gcodeprocessing.js b/js/gcodeprocessing.js index 670370f..927ce74 100644 --- a/js/gcodeprocessing.js +++ b/js/gcodeprocessing.js @@ -308,9 +308,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"); } - // firstlayer test square array if(name == "firstlayerForm"){ + var squares = ""; var originalSquare = firstlayer[nozzleLayer]; for(var i = 0; i <= 4; i++){ var square = "\n; square "+(i+1)+originalSquare;