bugfix: add heater change gcode in event list (console history)

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2021-01-23 01:39:11 +01:00
1 parent 659504f77e
commit 54c78e2735
1 file changed
+5 -1
+5 -1
View File
@@ -54,7 +54,11 @@
} 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('printer.gcode.script', { script: this.command+' '+this.attributeName+'='+this.name+' TARGET='+this.value });
} else {
const gcode = this.command+' '+this.attributeName+'='+this.name+' TARGET='+this.value
this.$store.commit('server/addEvent', { message: gcode, type: 'command' });
this.$socket.sendObj('printer.gcode.script', { script: gcode });
}
}
},
watch: {