fixes #323 cnc tool comments in gcode header
This commit is contained in:
parent
d297eb630c
commit
d1308b582f
1 changed files with 2 additions and 2 deletions
|
|
@ -414,8 +414,8 @@ CAM.export = function(print, online) {
|
|||
// emit tools used in comments
|
||||
append("; --- tools ---");
|
||||
Object.keys(toolz).sort().forEach(tn => {
|
||||
let tool = toolz[tn];
|
||||
append(`; tool=${tn} flute=${tool.flute_diam} len=${tool.flute_len} metric=${tool.metric}`);
|
||||
let { number, flute_diam, flute_len, metric } = toolz[tn].tool;
|
||||
append(`; tool#=${number} flute=${flute_diam} len=${flute_len} unit=${metric ? 'metric' : 'imperial'}`);
|
||||
});
|
||||
}
|
||||
// emit gcode preamble
|
||||
|
|
|
|||
Loading…
Reference in a new issue