removed load_position

This commit is contained in:
sanjayk03-dev
2024-12-03 14:53:10 +05:30
parent 11d129c4f8
commit a935bf3824

View File

@@ -779,21 +779,6 @@ module.exports = {
api.put(`position/${axis}`, { position: parseFloat(position) });
},
// load_position: function (axes) {
// try {
// for (const axis of axes) {
// if (this.config.axes["offset_" + axis] && this.state["offset_" + axis] == 0 && this[axis].state == "HOMED") {
// const position = this.state.metric
// ? this.config.axes["offset_" + axis]
// : this.config.axes["offset_" + axis] / 25.4;
// this.set_position(axis, -position);
// }
// }
// } catch (error) {
// console.warn(error);
// }
// },
zero_all: function () {
for (const axis of "xyzabc") {
if (this[axis].enabled) {