From 397d9b8a7c4e731eff2610412d8f0239a356c6e8 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 12 Jan 2021 00:46:24 +0100 Subject: [PATCH] bugfix: tool input is empty -> klipper error unable to parse Signed-off-by: Stefan Dej --- src/inputs/ToolInput.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/inputs/ToolInput.vue b/src/inputs/ToolInput.vue index 8bd7fd91..1254cbd0 100644 --- a/src/inputs/ToolInput.vue +++ b/src/inputs/ToolInput.vue @@ -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+")");