eslint fix spaced-comment errors

This commit is contained in:
Sam Schloegel
2022-01-03 14:40:10 -05:00
parent aec191e178
commit 83c46db661
13 changed files with 57 additions and 57 deletions
+6 -6
View File
@@ -13,7 +13,7 @@ exports.searchOptions = {
};
exports.defaultPort = 3032;
//"\xc0/eos/ping\x00\x00\x2c\x00\x00\x00\xc0"
// "\xc0/eos/ping\x00\x00\x2c\x00\x00\x00\xc0"
exports.ready = function (device) {
device.send('/eos/get/cuelist/count');
@@ -90,10 +90,10 @@ exports.data = function (device, osc) {
),
};
//console.log(p[4]+" "+p[5]+" "+p[6]+" updated")
// console.log(p[4]+" "+p[5]+" "+p[6]+" updated")
device.draw();
} else if (p[1] == 'out' && p[2] == 'get' && p[3] == 'cue' && p.length == 6) {
//console.log("cue "+p[4]+" "+p[5]+" deleted")
// console.log("cue "+p[4]+" "+p[5]+" deleted")
// There's no OSC notification of the deletion of a part. It just tells you to update the parent cue and remaining children.
// So: we should fetch all the parts of a cue somehow every time there's an update to a cue.
@@ -125,7 +125,7 @@ exports.data = function (device, osc) {
var cueNumber = osc.args[1];
device.send(`/eos/get/cue/${cueList}/${cueNumber}`);
//console.log("SENT /eos/get/cue/"+cueList+"/"+cueNumber);
// console.log("SENT /eos/get/cue/"+cueList+"/"+cueNumber);
} else if (
p[2] == 'cmd' ||
p[2] == 'ping' ||
@@ -135,9 +135,9 @@ exports.data = function (device, osc) {
} else if (p[3] == 'version') {
device.data.version = osc.args[0];
} else {
//console.log(osc);
// console.log(osc);
}
//console.log(p)
// console.log(p)
};
exports.heartbeat = function (device) {
device.send('/eos/ping');
+2 -2
View File
@@ -13,8 +13,8 @@ exports.searchOptions = {
exports.defaultPort = 4352;
exports.ready = function (device) {
//Power status query
//device.send("%1POWR ?\r");
// Power status query
// device.send("%1POWR ?\r");
};
var password = false;
+3 -3
View File
@@ -14,7 +14,7 @@ exports.data = function (device, osc) {
var p = osc.address.split('/');
p.shift();
//console.log(address)
// console.log(address)
if (osc.address == '/reply/workspaces') {
const d = JSON.parse(osc.args[0]).data;
@@ -53,7 +53,7 @@ exports.data = function (device, osc) {
for (var cueIndex in group.cues) {
var cue = group.cues[cueIndex];
//console.log(cue)
// console.log(cue)
device.data.lastCueInGroup[group.uniqueID] = cue;
@@ -81,7 +81,7 @@ exports.data = function (device, osc) {
}
}
//console.log(device.data.lastCueInGroup)
// console.log(device.data.lastCueInGroup)
device.draw();
} else if (p[0] == 'update' && p[1] == 'workspace' && p[3] == 'cue_id') {
+1 -1
View File
@@ -50,7 +50,7 @@ exports.data = function (device, message) {
// if(msg.substring(0, 5)=="Error"){
// device.data.error = msg.substring(6, 7);
// }
//console.log(msg)
// console.log(msg)
};
exports.heartbeat = function (device) {
+6 -6
View File
@@ -25,10 +25,10 @@ exports.ready = function (device) {
device.send(Buffer.from('/xinfo'));
//device.send(Buffer.from("\x2f\x62\x61\x74\x63\x68\x73\x75\x62\x73\x63\x72\x69\x62\x65\x00\x2c\x73\x73\x69\x69\x69\x00\x00\x6d\x65\x74\x65\x72\x73\x2f\x30\x00\x00\x00\x00\x2f\x6d\x65\x74\x65\x72\x73\x2f\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01"));
//device.send(Buffer.from("/batchsubscribe\x00,ssiii\x00\x00meters/0\x00\x00\x00\x00/meters/0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01"));
// device.send(Buffer.from("\x2f\x62\x61\x74\x63\x68\x73\x75\x62\x73\x63\x72\x69\x62\x65\x00\x2c\x73\x73\x69\x69\x69\x00\x00\x6d\x65\x74\x65\x72\x73\x2f\x30\x00\x00\x00\x00\x2f\x6d\x65\x74\x65\x72\x73\x2f\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01"));
// device.send(Buffer.from("/batchsubscribe\x00,ssiii\x00\x00meters/0\x00\x00\x00\x00/meters/0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01"));
//device.send(Buffer.from("/subscribe\x00,si\x00/-stat/solosw/01\x001"));
// device.send(Buffer.from("/subscribe\x00,si\x00/-stat/solosw/01\x001"));
};
exports.data = function (device, buf) {
@@ -56,7 +56,7 @@ exports.data = function (device, buf) {
}
device.draw();
} else if (msg[0] == '/meters/0') {
//console.log(msg)
// console.log(msg)
} else if (msg[0].indexOf('/mix/fader') >= 0) {
var addr = parseAddress(msg[0]);
var channel = Number(addr[1]);
@@ -102,9 +102,9 @@ exports.data = function (device, buf) {
device.draw();
device.send(Buffer.from(`/ch/${addr[1]}/mix/on\u0000\u0000\u0000\u0000`));
} else {
//console.log(msg)
// console.log(msg)
}
//console.log(msg)
// console.log(msg)
};
exports.heartbeat = function (device) {
+6 -6
View File
@@ -25,10 +25,10 @@ exports.ready = function (device) {
device.send(Buffer.from('/xinfo'));
//device.send(Buffer.from("\x2f\x62\x61\x74\x63\x68\x73\x75\x62\x73\x63\x72\x69\x62\x65\x00\x2c\x73\x73\x69\x69\x69\x00\x00\x6d\x65\x74\x65\x72\x73\x2f\x30\x00\x00\x00\x00\x2f\x6d\x65\x74\x65\x72\x73\x2f\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01"));
//device.send(Buffer.from("/batchsubscribe\x00,ssiii\x00\x00meters/0\x00\x00\x00\x00/meters/0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01"));
// device.send(Buffer.from("\x2f\x62\x61\x74\x63\x68\x73\x75\x62\x73\x63\x72\x69\x62\x65\x00\x2c\x73\x73\x69\x69\x69\x00\x00\x6d\x65\x74\x65\x72\x73\x2f\x30\x00\x00\x00\x00\x2f\x6d\x65\x74\x65\x72\x73\x2f\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01"));
// device.send(Buffer.from("/batchsubscribe\x00,ssiii\x00\x00meters/0\x00\x00\x00\x00/meters/0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01"));
//device.send(Buffer.from("/subscribe\x00,si\x00/-stat/solosw/01\x001"));
// device.send(Buffer.from("/subscribe\x00,si\x00/-stat/solosw/01\x001"));
};
exports.data = function (device, buf) {
@@ -61,7 +61,7 @@ exports.data = function (device, buf) {
}
device.draw();
} else if (msg[0] == '/meters/0') {
//console.log(msg)
// console.log(msg)
} else if (msg[0].indexOf('/mix/fader') >= 0) {
var addr = parseAddress(msg[0]);
var channel = Number(addr[1]);
@@ -107,9 +107,9 @@ exports.data = function (device, buf) {
device.draw();
device.send(Buffer.from(`/ch/${addr[1]}/mix/on\u0000\u0000\u0000\u0000`));
} else {
//console.log(msg)
// console.log(msg)
}
//console.log(msg)
// console.log(msg)
};
exports.heartbeat = function (device) {