pull/110/head
openbuilds-engineer 2018-06-20 15:16:46 +02:00
rodzic 064c6f2486
commit 7189d2aed4
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -39,6 +39,10 @@ function initSocket() {
populatePortsMenu();
}, 2000);
socket.on('disconnect', function() {
console.log("WEBSOCKET DISCONNECTED")
});
socket.on('data', function(data) {
var toPrint = data;
if (data.indexOf("Done saving file.") != -1) {
@ -66,7 +70,9 @@ function initSocket() {
};
if (data.indexOf('Grbl') != -1) {
socket.emit('runCommand', '$$');
console.log(data)
// socket.emit('runCommand', '$$');
sendGcode('$$')
}
printLog(toPrint)