mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-05-21 21:49:46 +00:00
only parse artnet packets when necessary
This commit is contained in:
parent
a624004340
commit
c0da3a6af1
1 changed files with 6 additions and 2 deletions
|
@ -484,9 +484,13 @@ void transmitDmxToArtnet(dmx_port_t dmxPort, byte *dmx_data, uint8_t artnetUnive
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
|
{
|
||||||
|
// only check for artnet packets if we expect to receive data
|
||||||
|
if (direction1 == Output || direction2 == Output)
|
||||||
{
|
{
|
||||||
// check if artnet packet has come and execute callback
|
// check if artnet packet has come and execute callback
|
||||||
artnet.parse();
|
artnet.parse();
|
||||||
|
}
|
||||||
|
|
||||||
if (direction1 == Input)
|
if (direction1 == Input)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue