more linting

This commit is contained in:
Dave Conway-Jones
2025-08-26 17:41:25 +01:00
parent 900917b9d7
commit dded26cd88
2 changed files with 5 additions and 3 deletions

View File

@@ -70,7 +70,9 @@ module.exports = function(RED) {
if (this.pin == 0) { if (this.pin == 0) {
this.user1_green.close(); this.user1_green.close();
this.user1_red.close(); this.user1_red.close();
} if(this.pin == 1) { }
if (this.pin == 1) {
this.user2_green.close(); this.user2_green.close();
this.user2_red.close(); this.user2_red.close();
} }

View File

@@ -21,8 +21,8 @@ module.exports = function(RED) {
}); });
noble.on('scanStart', function(msg) { noble.on('scanStart', function(msg) {
let msg = {}; msg = {};
msg.topic = node.topic; msg.topic = node.topic || msg.topic;
msg.payload = "Scanning initiated..." //debugging msg.payload = "Scanning initiated..." //debugging
//console.log('scanning initiated...'); //console.log('scanning initiated...');
node.send(msg); node.send(msg);