mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	Stop arduino nodes warning about MaxEmitters
when more than 10 nodes in use
This commit is contained in:
		@@ -72,6 +72,7 @@ module.exports = function(RED) {
 | 
			
		||||
        if (typeof this.serverConfig === "object") {
 | 
			
		||||
            var startup = function() {
 | 
			
		||||
                node.board = node.serverConfig.board;
 | 
			
		||||
                node.board.setMaxListeners(0);
 | 
			
		||||
                node.oldval = "";
 | 
			
		||||
                node.status({fill:"grey",shape:"ring",text:"node-red:common.status.connecting"});
 | 
			
		||||
                var doit = function() {
 | 
			
		||||
@@ -146,6 +147,7 @@ module.exports = function(RED) {
 | 
			
		||||
        if (typeof node.serverConfig === "object") {
 | 
			
		||||
            var startup = function() {
 | 
			
		||||
                node.board = node.serverConfig.board;
 | 
			
		||||
                node.board.setMaxListeners(0);
 | 
			
		||||
                node.status({fill:"grey",shape:"ring",text:"node-red:common.status.connecting"});
 | 
			
		||||
                var doit = function() {
 | 
			
		||||
                    node.running = true;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
    "name"          : "node-red-node-arduino",
 | 
			
		||||
    "version"       : "0.3.0",
 | 
			
		||||
    "version"       : "0.3.1",
 | 
			
		||||
    "description"   : "A Node-RED node to talk to an Arduino running firmata",
 | 
			
		||||
    "dependencies"  : {
 | 
			
		||||
        "firmata"   : "^2.0.0"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user