kopia lustrzana https://github.com/OpenBuilds/OpenBuilds-CONTROL
fix USB Unplug - set Disconnect UI state back to connectable
rodzic
54c65de19e
commit
6a65086edc
2
index.js
2
index.js
|
|
@ -699,6 +699,7 @@ io.on("connection", function(socket) {
|
|||
|
||||
if (status.comms.connectionStatus > 0) {
|
||||
console.log('WARN: Closing Port ' + port.path);
|
||||
status.comms.connectionStatus = 0;
|
||||
stopPort();
|
||||
} else {
|
||||
console.log('ERROR: Machine connection not open!');
|
||||
|
|
@ -789,6 +790,7 @@ io.on("connection", function(socket) {
|
|||
'response': "PORT INFO: Port closed"
|
||||
}
|
||||
io.sockets.emit('data', output);
|
||||
status.comms.connectionStatus = 0;
|
||||
}); // end port.onclose
|
||||
|
||||
port.on("data", function(data) {
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue