some minor tweaks

This commit is contained in:
2019-08-06 11:45:50 +03:00
parent effbfbad2a
commit e3e5b2cc5d
7 changed files with 15 additions and 19 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 < 5) {
if (executing && status.commandQueue < 1) {
if (gcodeLinesQueue && gcodeLinesQueue.length > 0) {
const command = gcodeLinesQueue.shift();
console.log(parseCommand(command));

View File

@@ -49,7 +49,7 @@ export default class GcodeVisualiser extends React.PureComponent<
: "blue"
}
strokeWidth={
(command.Z ? command.Z : lastPos.eng) ? 2 : 1
(command.Z ? command.Z : lastPos.eng) ? 1 : 0.5
}
/>
);
@@ -92,7 +92,7 @@ export default class GcodeVisualiser extends React.PureComponent<
: "blue"
}
strokeWidth={
(command.Z ? command.Z : lastPos.eng) ? 2 : 1
(command.Z ? command.Z : lastPos.eng) ? 1 : 0.5
}
/>
);