Skip to content

Commit

Permalink
fix: send MOVE=1 for z-adjust during prints
Browse files Browse the repository at this point in the history
  • Loading branch information
cadriel committed Nov 2, 2020
1 parent 49b33e7 commit eee510b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/mixins/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,8 @@ export default class UtilsMixin extends Vue {
/**
* Send a Z adjust gcode script.
*/
sendZAdjustGcode (direction: string, distance: string, wait?: string) {
let gcode = `SET_GCODE_OFFSET Z_ADJUST=${direction}${distance}`
if (!this.printerPrinting) {
gcode += ' MOVE=1'
}
sendZAdjustGcode (direction: '+' | '-', distance: string, wait?: string) {
const gcode = `SET_GCODE_OFFSET Z_ADJUST=${direction}${distance} MOVE=1`
this.sendGcode(gcode, wait)
}

Expand Down

0 comments on commit eee510b

Please sign in to comment.