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",
|
||||
"watch": "tsc -w",
|
||||
"dev": "npm run build && node ./dist/index.js",
|
||||
"start": "node ./dist/index.js",
|
||||
"make": "npm run build && pkg --compress GZip ."
|
||||
},
|
||||
"pkg": {
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user