mirror of
https://github.com/rainloreley/artnet-usbdmx-converter.git
synced 2025-01-15 12:13:26 +01:00
Compare commits
No commits in common. "0db2b7b6d71998a8daf03f3fd1693c719853444b" and "f36cc53be11e6d4dcf89fb87793384c09f638f14" have entirely different histories.
0db2b7b6d7
...
f36cc53be1
@ -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": {
|
||||||
|
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user