From 3c2946347608c40a212c017d7d2633fb0718b80c Mon Sep 17 00:00:00 2001 From: flyfisher604 Date: Sun, 7 Feb 2021 16:41:22 -0800 Subject: [PATCH] Debug outputs all params --- MPCNC.cps | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/MPCNC.cps b/MPCNC.cps index 9350777..9bf0a32 100644 --- a/MPCNC.cps +++ b/MPCNC.cps @@ -772,15 +772,30 @@ function onParameter(name, value) { writeComment(eComment.Important, value); writeComment(eComment.Important, " Posts processor: " + FileSystem.getFilename(getConfigurationPath())); } + // Date - if (name == "generated-at") writeComment(eComment.Important, " Gcode generated: " + value + " GMT"); + else if (name == "generated-at") { + writeComment(eComment.Important, " Gcode generated: " + value + " GMT"); + } + // Document - if (name == "document-path") writeComment(eComment.Important, " Document: " + value); + else if (name == "document-path") { + writeComment(eComment.Important, " Document: " + value); + } + // Setup - if (name == "job-description") writeComment(eComment.Important, " Setup: " + value); + else if (name == "job-description") { + writeComment(eComment.Important, " Setup: " + value); + } // Get section comment - if (name == "operation-comment") sectionComment = value; + else if (name == "operation-comment") { + sectionComment = value; + } + + else { + writeComment(eComment.Debug, " param: " + name + " = " + value); + } } function onMovement(movement) {