From 298e385867d3458c898ae51bdf595c6cf09b694f Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Mon, 12 Dec 2022 14:41:29 -0600 Subject: [PATCH] lint pjlink plugin --- plugins/pjlink/main.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/pjlink/main.js b/plugins/pjlink/main.js index 2776916..ac293eb 100644 --- a/plugins/pjlink/main.js +++ b/plugins/pjlink/main.js @@ -23,7 +23,7 @@ exports.config = { label: 'Pass', type: 'textinput', value: '', - action: function (device) { + action(device) { device.plugin.heartbeat(device); }, }, @@ -115,11 +115,10 @@ function processPJLink(_device, str, that) { device.draw(); } -exports.data = function data(device, message) { +exports.data = function data(_device, message) { this.deviceInfoUpdate(device, 'status', 'ok'); const msg = message.toString(); - - //console.log(msg); + const device = _device; if (msg.substring(0, 8) === 'PJLINK 1') { passwordSeed = msg.substring(9, 17);