mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-05-18 21:55:34 +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
|
@ -485,8 +485,12 @@ void transmitDmxToArtnet(dmx_port_t dmxPort, byte *dmx_data, uint8_t artnetUnive
|
|||
|
||||
void loop()
|
||||
{
|
||||
// check if artnet packet has come and execute callback
|
||||
artnet.parse();
|
||||
// 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
|
||||
artnet.parse();
|
||||
}
|
||||
|
||||
if (direction1 == Input)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue