mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Serial port - missed no split char option. If no split char then send every
character in char mode.
This commit is contained in:
		| @@ -117,7 +117,7 @@ module.exports = function(RED) { | ||||
|             var splitc = new Buffer(node.serialConfig.newline.replace("\\n","\n").replace("\\r","\r").replace("\\t","\t").replace("\\e","\e").replace("\\f","\f").replace("\\0","\0")); | ||||
|             this.port.on('data', function(msg) { | ||||
|                 // single char buffer | ||||
|                 if (node.serialConfig.newline == 0) { | ||||
|                 if ((node.serialConfig.newline == 0)||(node.serialConfig.newline == "")) { | ||||
|                     node.send({"payload": new Buffer([msg])}); | ||||
|                 } | ||||
|                 else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user