mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Serial port - missed no split char option. If no split char then send every
character in char mode.
This commit is contained in:
parent
00f87cbcd6
commit
12b8fa36dc
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user