From ba126e90d964215501333398cb84e82abfe0634a Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 8 May 2014 11:12:13 +0100 Subject: [PATCH] TypeError on debug node Fixes #223 --- nodes/core/core/58-debug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/core/core/58-debug.js b/nodes/core/core/58-debug.js index fa0e82a8f..9eabd2f6f 100644 --- a/nodes/core/core/58-debug.js +++ b/nodes/core/core/58-debug.js @@ -37,7 +37,7 @@ module.exports = function(RED) { } if (msg.payload instanceof Buffer) { msg.payload = "(Buffer) "+msg.payload.toString('hex'); } if (this.active) { - DebugNode.send({id:this.id,name:this.name,topic:msg.topic,msg:msg,_path:msg._path}); + sendDebug({id:this.id,name:this.name,topic:msg.topic,msg:msg,_path:msg._path}); } } else { // debug just the msg.payload if (this.console == "true") {