mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-15 02:33:38 +00:00
prettier width
This commit is contained in:
@@ -115,9 +115,9 @@ function processPJLink(_device, str, that) {
|
||||
}
|
||||
|
||||
exports.data = function data(_device, message) {
|
||||
const device = _device;
|
||||
this.deviceInfoUpdate(device, 'status', 'ok');
|
||||
const msg = message.toString();
|
||||
const device = _device;
|
||||
|
||||
if (msg.substring(0, 8) === 'PJLINK 1') {
|
||||
passwordSeed = msg.substring(9, 17);
|
||||
@@ -149,9 +149,7 @@ exports.heartbeat = function heartbeat(device) {
|
||||
`${passwordMD5}%1POWR ?\r%1INPT ?\r%1AVMT ?\r%1ERST ?\r%1LAMP ?\r%1NAME ?\r%1INF1 ?\r%1INF2 ?\r%2SNUM ?\r%2SVER ?\r`
|
||||
);
|
||||
} else {
|
||||
device.send(
|
||||
`%1POWR ?\r%1INPT ?\r%1AVMT ?\r%1ERST ?\r%1LAMP ?\r%1NAME ?\r%1INF1 ?\r%1INF2 ?\r%2SNUM ?\r%2SVER ?\r`
|
||||
);
|
||||
device.send(`%1POWR ?\r%1INPT ?\r%1AVMT ?\r%1ERST ?\r%1LAMP ?\r%1NAME ?\r%1INF1 ?\r%1INF2 ?\r%2SNUM ?\r%2SVER ?\r`);
|
||||
}
|
||||
device.draw();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user