changed from 1.5.0 to 1.6.0, added rotary feature
This commit is contained in:
@@ -311,6 +311,21 @@ module.exports = new Vue({
|
||||
return semverLt(this.config.full_version, this.latestVersion);
|
||||
},
|
||||
|
||||
toggle_rotary: async function() {
|
||||
let motor = this.config.motors[2];
|
||||
if(motor['axis'] == 'A'){
|
||||
motor['axis'] = 'Y';
|
||||
} else {
|
||||
motor['axis'] = 'A';
|
||||
}
|
||||
try {
|
||||
await api.put("config/save", this.config);
|
||||
} catch (error) {
|
||||
console.error("Restore failed:", error);
|
||||
alert("Error occured");
|
||||
}
|
||||
},
|
||||
|
||||
showShutdownDialog: function() {
|
||||
SvelteComponents.showDialog("Shutdown");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user