Compare commits

..

3 Commits

Author SHA1 Message Date
0db2b7b6d7
fixed package.json 2024-05-09 02:27:29 +02:00
c864c374db
Update package.json 2024-05-09 01:12:40 +02:00
8e3d303e51
check channel and value data before sending 2024-05-09 01:03:27 +02:00
2 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,7 @@
"build": "tsc",
"watch": "tsc -w",
"dev": "npm run build && node ./dist/index.js",
"start": "node ./dist/index.js",
"make": "npm run build && pkg --compress GZip ."
},
"pkg": {

View File

@ -65,8 +65,10 @@ export default class ConvertHandler {
this.usbdmxInCounter++;
if (this.outputAllowed) {
for (let i = 0; i < data.length; i++) {
if ((startChannel + i) >= 0 && (startChannel + i) < 512 && data[i] >= 0 && data[i] < 256) {
this.artNetSender.prepChannel(startChannel + i, data[i]);
}
}
this.artnetOutCounter++;
this.artNetSender.transmit();
}