Skip to content

Commit

Permalink
Merge commit '3c2946347608c40a212c017d7d2633fb0718b80c' into V1.beta2
Browse files Browse the repository at this point in the history
  • Loading branch information
flyfisher604 committed Feb 8, 2021
2 parents 340edc8 + 3c29463 commit fc0d38d
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions MPCNC.cps
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fc0d38d

Please sign in to comment.