kopia lustrzana https://github.com/OpenBuilds/OpenBuilds-CONTROL
Update
rodzic
064c6f2486
commit
7189d2aed4
|
@ -39,6 +39,10 @@ function initSocket() {
|
||||||
populatePortsMenu();
|
populatePortsMenu();
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
|
||||||
|
socket.on('disconnect', function() {
|
||||||
|
console.log("WEBSOCKET DISCONNECTED")
|
||||||
|
});
|
||||||
|
|
||||||
socket.on('data', function(data) {
|
socket.on('data', function(data) {
|
||||||
var toPrint = data;
|
var toPrint = data;
|
||||||
if (data.indexOf("Done saving file.") != -1) {
|
if (data.indexOf("Done saving file.") != -1) {
|
||||||
|
@ -66,7 +70,9 @@ function initSocket() {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (data.indexOf('Grbl') != -1) {
|
if (data.indexOf('Grbl') != -1) {
|
||||||
socket.emit('runCommand', '$$');
|
console.log(data)
|
||||||
|
// socket.emit('runCommand', '$$');
|
||||||
|
sendGcode('$$')
|
||||||
}
|
}
|
||||||
|
|
||||||
printLog(toPrint)
|
printLog(toPrint)
|
||||||
|
|
Ładowanie…
Reference in New Issue