mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Fix not triggering on waitfor character
This commit is contained in:
parent
cd85fe8df2
commit
24bd20ab21
@ -381,7 +381,7 @@ module.exports = function(RED) {
|
||||
var c = d[z];
|
||||
if (c === waitfor) { active = true; }
|
||||
// handle the trivial case first -- single char buffer
|
||||
if (!active) { return; }
|
||||
if (!active) { continue; }
|
||||
if ((newline === 0)||(newline === "")) {
|
||||
emitData(new Buffer.from([c]));
|
||||
continue;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-serialport",
|
||||
"version" : "0.10.2",
|
||||
"version" : "0.10.3",
|
||||
"description" : "Node-RED nodes to talk to serial ports",
|
||||
"dependencies" : {
|
||||
"serialport" : "^8.0.8"
|
||||
|
Loading…
Reference in New Issue
Block a user