Stop arduino nodes warning about MaxEmitters

when more than 10 nodes in use
This commit is contained in:
Dave Conway-Jones
2019-12-03 21:38:33 +00:00
parent 23f584268a
commit 878f511d0e
2 changed files with 3 additions and 1 deletions

View File

@@ -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;