patch up laser mode and layer transitions

This commit is contained in:
Stewart Allen 2022-10-19 00:11:54 -04:00
commit 829139c440
7 changed files with 57 additions and 52 deletions

View file

@ -54,9 +54,9 @@ class OpLaserOn extends CamOp {
}
prepare(ops, progress) {
this.op.silent = true;
ops.addGCode(this.op.enable);
ops.setLasering(true, this.op.power);
ops.newLayer();
}
}
@ -66,9 +66,9 @@ class OpLaserOff extends CamOp {
}
prepare(ops, progress) {
this.op.silent = true;
ops.addGCode(this.op.disable);
ops.setLasering(false);
ops.newLayer();
}
}