mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	fix serialport additional char in request mode
This commit is contained in:
		| @@ -214,7 +214,8 @@ module.exports = function(RED) { | ||||
|                     splitc = new Buffer.from(newline.replace("\\n","\n").replace("\\r","\r").replace("\\t","\t").replace("\\e","\e").replace("\\f","\f").replace("\\0","\0")); // jshint ignore:line | ||||
|                 } | ||||
|                 if (addchar === true) { addchar = splitc; } | ||||
|  | ||||
|                 addchar = addchar.replace("\\n","\n").replace("\\r","\r").replace("\\t","\t").replace("\\e","\e").replace("\\f","\f").replace("\\0","\0"); // jshint ignore:line | ||||
|                 if (addchar.substr(0,2) == "0x") { addchar = new Buffer.from([addchar]); } | ||||
|                 connections[id] = (function() { | ||||
|                     var obj = { | ||||
|                         _emitter: new events.EventEmitter(), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user