mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
fix serialport additional char in request mode
This commit is contained in:
parent
6682320c97
commit
b0c8b0f2c6
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user