Compare commits

..

No commits in common. "0db2b7b6d71998a8daf03f3fd1693c719853444b" and "f36cc53be11e6d4dcf89fb87793384c09f638f14" have entirely different histories.

2 changed files with 1 additions and 4 deletions

View File

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

View File

@ -65,9 +65,7 @@ export default class ConvertHandler {
this.usbdmxInCounter++; this.usbdmxInCounter++;
if (this.outputAllowed) { if (this.outputAllowed) {
for (let i = 0; i < data.length; i++) { 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.artNetSender.prepChannel(startChannel + i, data[i]);
}
} }
this.artnetOutCounter++; this.artnetOutCounter++;
this.artNetSender.transmit(); this.artNetSender.transmit();