mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-26 16:57:48 +01:00
some minor tweaks
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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
|
||||
}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user