1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Stop serialport open loop

This commit is contained in:
Dave Conway-Jones 2015-11-09 15:57:10 +00:00
parent 601889a10f
commit b6bbcbd52f
2 changed files with 4 additions and 4 deletions

View File

@ -230,10 +230,10 @@ module.exports = function(RED) {
olderr = err.toString();
RED.log.error(RED._("serial.errors.error",{port:port,error:olderr}));
}
obj.tout = setTimeout(function() {
setupSerial();
}, settings.serialReconnectTime);
}
obj.tout = setTimeout(function() {
setupSerial();
}, settings.serialReconnectTime);
});
obj.serial.on('error', function(err) {
RED.log.error(RED._("serial.errors.error",{port:port,error:err.toString()}));

View File

@ -1,6 +1,6 @@
{
"name" : "node-red-node-serialport",
"version" : "0.0.4",
"version" : "0.0.5",
"description" : "Node-RED nodes to talk to an serial port",
"dependencies" : {
"serialport" : "1.7.*"