bugfix: tool input is empty -> klipper error unable to parse

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2021-01-12 00:46:24 +01:00
1 parent 84f2b6a473
commit 397d9b8a7c
1 file changed
+2
+2
View File
@@ -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+")");