From 4dcddb0ef6c4bd509cd947dcf41d8fef03b92a1d Mon Sep 17 00:00:00 2001 From: kraftaksvk Date: Tue, 6 Aug 2024 22:33:54 +0200 Subject: [PATCH] Fixed Extruder panel to use _CLIENT_EXTRUDE --- .../panels/Extruder/ExtruderControlPanelControl.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/panels/Extruder/ExtruderControlPanelControl.vue b/src/components/panels/Extruder/ExtruderControlPanelControl.vue index fdb7a10a8..fa3c8f387 100644 --- a/src/components/panels/Extruder/ExtruderControlPanelControl.vue +++ b/src/components/panels/Extruder/ExtruderControlPanelControl.vue @@ -263,13 +263,13 @@ export default class ExtruderControlPanel extends Mixins(BaseMixin, ExtruderMixi } sendRetract(): void { - const gcode = `M83\nG1 E-${this.feedamount} F${this.feedrate * 60}` + const gcode = `_CLIENT_RETRACT LENGTH=${this.feedamount} SPEED=${this.feedrate}` this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' }) this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'btnRetract' }) } sendExtrude(): void { - const gcode = `M83\nG1 E${this.feedamount} F${this.feedrate * 60}` + const gcode = `_CLIENT_EXTRUDE LENGTH=${this.feedamount} SPEED=${this.feedrate}` this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' }) this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'btnDetract' }) }