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(),
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
    "name"          : "node-red-node-serialport",
 | 
			
		||||
    "version"       : "0.8.4",
 | 
			
		||||
    "version"       : "0.8.5",
 | 
			
		||||
    "description"   : "Node-RED nodes to talk to serial ports",
 | 
			
		||||
    "dependencies"  : {
 | 
			
		||||
        "serialport"   : "^7.1.5"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user