removed return to allow multiple props

This commit is contained in:
htmltiger 2023-06-18 10:19:51 +01:00 committed by GitHub
parent d82707acd0
commit 542d837c7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,6 @@ module.exports = function(RED) {
}else if(msg.action == "connect"){
serialPool.connect(this.serialConfig.serialport);
}
return;
}
if (msg.hasOwnProperty("baudrate")) {
var baud = parseInt(msg.baudrate);
@ -149,7 +148,6 @@ module.exports = function(RED) {
}else if(msg.action == "connect"){
serialPool.connect(this.serialConfig.serialport);
}
return;
}
if (msg.hasOwnProperty("baudrate")) {
var baud = parseInt(msg.baudrate);