Skip to content

Commit

Permalink
More run time fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchBradley committed Nov 24, 2020
1 parent 1d62392 commit 8b06324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ cnc.updateView = function() {
}
// Nonzero receivedLines is a good indicator of GCode execution
// as opposed to jogging, etc.
if (receivedLines) {
if (receivedLines && startTime) {
var elapsed = new Date().getTime() - startTime;
var elapsed = Math.max(elapsedTime, elapsed);
if (elapsed < 0)
Expand Down

0 comments on commit 8b06324

Please sign in to comment.