why did i even think of THAT?

This commit is contained in:
2019-08-06 12:25:06 +03:00
parent 6e451b3b9a
commit ccde6e8ae5
6 changed files with 21 additions and 34 deletions

View File

@@ -62,7 +62,7 @@ export class GcodeSenderComponent extends React.PureComponent<
const gcodeLinesQueue = [...this.state.gcodeLinesQueue];
const gcodeLinesSent = [...this.state.gcodeLinesSent];
const { executing } = this.state;
if (executing && status.commandQueue < 1) {
if (executing && status.commandQueue < 10) {
if (gcodeLinesQueue && gcodeLinesQueue.length > 0) {
const command = gcodeLinesQueue.shift();
console.log(parseCommand(command));