v1.0.51 - Sketchucam and disable StateLoop during jobs

pull/110/head
openbuilds-engineer 2018-08-07 18:23:58 +02:00
rodzic a94dd2b438
commit 0c4bcc899d
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -896,7 +896,7 @@ io.on("connection", function(socket) {
}, 250);
stateLoop = setInterval(function() {
if (status.comms.connectionStatus > 0) {
if (!status.comms.sduploading) {
if (!status.comms.sduploading && status.comms.connectionStatus < 3) {
machineSend("$G\n");
}
}
@ -1183,9 +1183,9 @@ io.on("connection", function(socket) {
runningJob = data;
data = data.split('\n');
for (var i = 0; i < data.length; i++) {
var line = data[i].split(';'); // Remove everything after ; = comment
var line = line[0].split('('); // Remove everything after ( = comment in Sketchucam
var tosend = line[0].trim().replace("%", ""); // % is in Sketchucam GCODE
var line = data[i].replace("%", "").split(';'); // Remove everything after ; = comment
var tosend = line[0].trim();
if (tosend.length > 0) {
addQ(tosend);
}

Wyświetl plik

@ -1,6 +1,6 @@
{
"name": "OpenBuildsMachineDriver",
"version": "1.0.50",
"version": "1.0.51",
"license": "AGPL-3.0",
"description": "Machine Interface Driver for OpenBuilds",
"author": "github.com/openbuilds <webmaster@openbuilds.com>",