mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
d8263eab25
commit
17886b7296
@ -49,9 +49,9 @@ module.exports = function(RED) {
|
||||
else {
|
||||
payload = payload.toString();
|
||||
}
|
||||
payload += node.addCh;
|
||||
if (node.out === "char") { payload += node.addCh; }
|
||||
}
|
||||
else if (node.addCh !== "") {
|
||||
else if ((node.addCh !== "") && (node.out === "char")) {
|
||||
payload = Buffer.concat([payload,new Buffer(node.addCh)]);
|
||||
}
|
||||
node.port.write(payload,function(err,res) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-serialport",
|
||||
"version" : "0.6.2",
|
||||
"version" : "0.6.3",
|
||||
"description" : "Node-RED nodes to talk to serial ports",
|
||||
"dependencies" : {
|
||||
"serialport" : "^6.0.4"
|
||||
|
Loading…
Reference in New Issue
Block a user