Skip to content

Commit

Permalink
fixes #323 cnc tool comments in gcode header
Browse files Browse the repository at this point in the history
  • Loading branch information
stewartoallen committed Dec 19, 2024
1 parent d297eb6 commit d1308b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kiri-mode/cam/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1308b5

Please sign in to comment.