auto homing, logging

This commit is contained in:
sanjayk03-dev
2024-07-17 16:36:11 +05:30
parent 5a77b98209
commit 0de9bde0fb
3 changed files with 16 additions and 6 deletions

View File

@@ -743,13 +743,14 @@ module.exports = {
this.confirmDelete = false;
},
home: function (axis) {
home: async function (axis) {
this.ask_home = false;
if (typeof axis == "undefined") {
api.put("home");
await api.put("home");
console.log('store data')
} else if (this[axis].homingMode != "manual") {
api.put(`home/${axis}`);
await api.put(`home/${axis}`);
} else {
SvelteComponents.showDialog("ManualHomeAxis", { axis });
}