1
0
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:
Dave Conway-Jones 2020-06-13 20:35:14 +01:00
parent cd85fe8df2
commit 24bd20ab21
No known key found for this signature in database
GPG Key ID: 302A6725C594817F
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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"