Skip to content

Commit 6206ed7

Browse files
committed
Fixed x/yCenter calculations in homeaxis preset
1 parent 9376741 commit 6206ed7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "configtool",
3-
"version": "3.6.13",
3+
"version": "3.6.14",
44
"scripts": {
55
"dev": "vite",
66
"build": "run-p type-check \"build-only {@}\" --",

‎public/templates/homeaxis.ejs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ G90 ; absolute positioning
4242
var xCenter = move.compensation.probeGrid.mins[0] + (move.compensation.probeGrid.maxs[0] - move.compensation.probeGrid.mins[0]) / 2 - sensors.probes[<%- zProbeIndex %>].offsets[0]
4343
var yCenter = move.compensation.probeGrid.mins[1] + (move.compensation.probeGrid.maxs[1] - move.compensation.probeGrid.mins[1]) / 2 - sensors.probes[<%- zProbeIndex %>].offsets[1]
4444
<% } else { -%>
45-
var xCenter = model.move.axes[0].min + (model.move.axes[0].max - model.move.axes[0].min) / 2 - sensors.probes[<%- zProbeIndex %>].offsets[0]
46-
var yCenter = model.move.axes[1].min + (model.move.axes[1].max - model.move.axes[1].min) / 2 - sensors.probes[<%- zProbeIndex %>].offsets[1]
45+
var xCenter = move.axes[0].min + (move.axes[0].max - move.axes[0].min) / 2 - sensors.probes[<%- zProbeIndex %>].offsets[0]
46+
var yCenter = move.axes[1].min + (move.axes[1].max - move.axes[1].min) / 2 - sensors.probes[<%- zProbeIndex %>].offsets[1]
4747
<% } -%>
4848
G1 <%- params({
4949
X: "{var.xCenter}",

0 commit comments

Comments
 (0)