From 97247184d9fb39e8fc43ab3935684eb87fef05a4 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 8 Aug 2021 18:49:15 +0200 Subject: [PATCH] bugfix: set tool target temp if new target is out of range Signed-off-by: Stefan Dej --- src/components/inputs/ToolInput.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/inputs/ToolInput.vue b/src/components/inputs/ToolInput.vue index acf715ef..03cca5bb 100644 --- a/src/components/inputs/ToolInput.vue +++ b/src/components/inputs/ToolInput.vue @@ -22,7 +22,6 @@ this.max_temp) { - this.value = this.target; + this.value = { value: this.target, text: this.target } this.$toast.error("Temperature too high for "+this.name+"! (max: "+this.max_temp+")") } else if (this.value < this.min_temp && this.value != 0) { - this.value = this.target; + this.value = { value: this.target, text: this.target } this.$toast.error("Temperature too low for "+this.name+"! (min: "+this.min_temp+")") } else { const gcode = this.command+' '+this.attributeName+'='+this.name+' TARGET='+this.value