From eb534a17ff721d66fe9ea0d604693c10bde91f77 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Thu, 4 Jul 2024 10:27:59 -0400 Subject: [PATCH] fix calculated time output in cnc mode --- src/kiri-mode/cam/export.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kiri-mode/cam/export.js b/src/kiri-mode/cam/export.js index 62231bad..a38669a8 100644 --- a/src/kiri-mode/cam/export.js +++ b/src/kiri-mode/cam/export.js @@ -319,7 +319,7 @@ CAM.export = function(print, online) { // update time calculation time += opt.time >= 0 ? opt.time : (dist / (pos.f || 1000)) * 60; - + consts.time = Math.round(time); // if (comment && !stripComments) { // nl.append(" ; ").append(comment); // nl.append(" ; ").append(points); @@ -438,7 +438,7 @@ CAM.export = function(print, online) { const newOp = newmode && !newmode.silent && mode !== newmode; if (newOp) { if (mode && !stripComments) { - append("; ending " + mode.type + " op after " + Math.round(time/60) + " seconds"); + append("; ending " + mode.type + " op after " + Math.round(time) + " seconds"); } mode = newmode; if (mode) { @@ -465,7 +465,7 @@ CAM.export = function(print, online) { } if (mode && !stripComments) { - append("; ending " + mode.type + " op after " + Math.round(time/60) + " seconds"); + append("; ending " + mode.type + " op after " + Math.round(time) + " seconds"); } // emit gcode post