fixed for imperial units

This commit is contained in:
sanjayk03-dev
2024-07-28 21:04:36 +05:30
parent b4d8d05998
commit 2b131f530f

View File

@@ -783,7 +783,10 @@ module.exports = {
try {
for (const axis of axes) {
if (this.config.axes["offset_" + axis] && this.state["offset_" + axis] == 0 && this[axis].state == "HOMED") {
this.set_position(axis, -this.config.axes["offset_" + axis]);
const position = this.state.metric
? this.config.axes["offset_" + axis]
: this.config.axes["offset_" + axis] / 25.4;
this.set_position(axis, -position);
}
}
} catch (error) {