fix commented M82/M83 commands changing mode
This commit is contained in:
parent
13038c04db
commit
1d44ab2cf5
1 changed files with 2 additions and 2 deletions
|
|
@ -192,11 +192,11 @@
|
|||
let line = device.gcodePre[i];
|
||||
if (line.indexOf('T0') >= 0) t0 = true; else
|
||||
if (line.indexOf('T1') >= 0) t1 = true; else
|
||||
if (line.indexOf('M82') >= 0) {
|
||||
if (line.indexOf('M82') === 0) {
|
||||
extrudeAbs = true;
|
||||
extrudeSet = true;
|
||||
} else
|
||||
if (line.indexOf('M83') >= 0) {
|
||||
if (line.indexOf('M83') === 0) {
|
||||
extrudeAbs = false;
|
||||
extrudeSet = true;
|
||||
} else
|
||||
|
|
|
|||
Loading…
Reference in a new issue