bugfix: tool input is empty -> klipper error unable to parse
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
1 parent
84f2b6a473
commit
397d9b8a7c
1 file changed
+2
@@ -46,6 +46,8 @@
|
||||
},
|
||||
methods: {
|
||||
setTemps() {
|
||||
if (parseFloat(this.value) === 0) this.value = 0
|
||||
|
||||
if (this.max_temp !== undefined && this.value > this.max_temp) {
|
||||
this.value = this.target;
|
||||
Vue.$toast.error("Temperature too high for "+this.name+"! (max: "+this.max_temp+")");
|
||||
|
||||
Reference in new issue
Block a user