mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	Stop serialport open loop
This commit is contained in:
		@@ -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()}));
 | 
			
		||||
 
 | 
			
		||||
@@ -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.*"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user