diff --git a/src/doodle3dapi.js b/src/doodle3dapi.js index f0c2889..19eb056 100644 --- a/src/doodle3dapi.js +++ b/src/doodle3dapi.js @@ -66,15 +66,10 @@ export default class extends EventDispatcher { throw `Cannot print, print state is ${printerState.state}`; } - const autoUpdateState = this.autoUpdate; - this.autoUpdate = false; - if (!gcode.endsWith('\n')) { gcode += '\n'; } - this._currentBatch = 0; - let lastIndex = 0; let start = true; while (lastIndex !== gcode.length) { @@ -88,8 +83,6 @@ export default class extends EventDispatcher { start = false; lastIndex = index + 1; //skip next \n } - - this.autoUpdate = autoUpdateState; } async _update () {