Skip to content

Commit

Permalink
Fixed Z position display bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchBradley committed Dec 17, 2017
1 parent 4d71b29 commit a770406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ function renderGrblState(data) {

wpos.x = (wpos.x * factor).toFixed(digits);
wpos.y = (wpos.y * factor).toFixed(digits);
wpos.z = (wpos.y * factor).toFixed(digits);
wpos.z = (wpos.z * factor).toFixed(digits);

cnc.updateState(canClick, canStart, canPause, canResume, canStop, activeState, wpos, mpos);
}
Expand Down Expand Up @@ -327,7 +327,7 @@ controller.on('Smoothie:state', function(data) {

wpos.x = wpos.x.toFixed(digits);
wpos.y = wpos.y.toFixed(digits);
wpos.z = wpos.y.toFixed(digits);
wpos.z = wpos.z.toFixed(digits);

cnc.updateState(canClick, canStart, canPause, canResume, canStop, activeState, wpos, mpos);
});
Expand Down

0 comments on commit a770406

Please sign in to comment.