From 995db8a8a516a9c494d3b415fc0e2ce2238e38f5 Mon Sep 17 00:00:00 2001 From: Sandy Noble Date: Sun, 28 Oct 2018 15:18:33 +0000 Subject: [PATCH] Addition to support gcode without Z codes --- FileLoading.pde | 3 +++ 1 file changed, 3 insertions(+) diff --git a/FileLoading.pde b/FileLoading.pde index b8217a2..73a7bfb 100644 --- a/FileLoading.pde +++ b/FileLoading.pde @@ -322,6 +322,9 @@ RShape loadShapeFromGCodeFile(String filename) { drawLine = false; } } + else { // if there is no Z axis, assume it's always on +// drawLine = true; // this isn't always safe! + } Float x = ins.get("X"); Float y = ins.get("Y");