mirror of
https://github.com/rainloreley/artnet-usbdmx-converter.git
synced 2025-01-15 12:13:26 +01:00
Compare commits
3 Commits
f36cc53be1
...
0db2b7b6d7
Author | SHA1 | Date | |
---|---|---|---|
0db2b7b6d7 | |||
c864c374db | |||
8e3d303e51 |
@ -8,6 +8,7 @@
|
|||||||
"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": {
|
||||||
|
@ -65,7 +65,9 @@ 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++) {
|
||||||
this.artNetSender.prepChannel(startChannel + i, data[i]);
|
if ((startChannel + i) >= 0 && (startChannel + i) < 512 && data[i] >= 0 && data[i] < 256) {
|
||||||
|
this.artNetSender.prepChannel(startChannel + i, data[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.artnetOutCounter++;
|
this.artnetOutCounter++;
|
||||||
this.artNetSender.transmit();
|
this.artNetSender.transmit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user