mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-08 23:33:39 +00:00
lint pjlink plugin
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user