From a935bf382478c4bf41cd8fd131cf1b030c2ec2d5 Mon Sep 17 00:00:00 2001 From: sanjayk03-dev Date: Tue, 3 Dec 2024 14:53:10 +0530 Subject: [PATCH] removed load_position --- src/js/control-view.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/js/control-view.js b/src/js/control-view.js index a333436..ae58bea 100644 --- a/src/js/control-view.js +++ b/src/js/control-view.js @@ -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) {