From 479f2245e3e6b9bf4ceb25fdaf4dfcd2f1ebf59a Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 1 Aug 2020 16:38:58 +0200 Subject: [PATCH] bugfix: disable heater with value 0 Signed-off-by: Stefan Dej --- src/inputs/ToolInput.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inputs/ToolInput.vue b/src/inputs/ToolInput.vue index ed887e2b..c1c1402a 100644 --- a/src/inputs/ToolInput.vue +++ b/src/inputs/ToolInput.vue @@ -40,7 +40,7 @@ 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+")"); - } else if (this.min_temp !== undefined && this.value < this.min_temp && this.value !== 0) { + } else if (this.min_temp !== undefined && this.value < this.min_temp && parseFloat(this.value) !== 0) { this.value = this.target; Vue.$toast.error("Temperature too low for "+this.name+"! (min: "+this.min_temp+")"); } else this.$socket.sendObj('post_printer_gcode_script', {script: this.command+' '+this.attributeName+'='+this.name+' TARGET='+this.value});