Skip to content

Commit

Permalink
fix: adds missing check
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
  • Loading branch information
pedrolamas committed Sep 8, 2024
1 parent ec1c3c0 commit 84ea630
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/widgets/toolhead/ExtruderMoves.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,15 @@ export default class ExtruderMoves extends Mixins(StateMixin, ToolheadMixin) {
}
retract () {
this.sendExtrudeGcode(-this.extrudeLength, this.extrudeSpeed, this.$waits.onExtrude)
if (this.valid) {
this.sendExtrudeGcode(-this.extrudeLength, this.extrudeSpeed, this.$waits.onExtrude)
}
}
extrude () {
this.sendExtrudeGcode(this.extrudeLength, this.extrudeSpeed, this.$waits.onExtrude)
if (this.valid) {
this.sendExtrudeGcode(this.extrudeLength, this.extrudeSpeed, this.$waits.onExtrude)
}
}
mounted () {
Expand Down

0 comments on commit 84ea630

Please sign in to comment.