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

TypeError on debug node

Fixes #223
This commit is contained in:
Nick O'Leary 2014-05-08 11:12:13 +01:00
parent 16f8673ec0
commit ba126e90d9

View File

@ -37,7 +37,7 @@ module.exports = function(RED) {
} }
if (msg.payload instanceof Buffer) { msg.payload = "(Buffer) "+msg.payload.toString('hex'); } if (msg.payload instanceof Buffer) { msg.payload = "(Buffer) "+msg.payload.toString('hex'); }
if (this.active) { 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 } else { // debug just the msg.payload
if (this.console == "true") { if (this.console == "true") {