jsimonetti / go-artnet

This package attempts to implement the Art-Net 4 specification from (c) Artistic Licence Holding Ltd.
MIT License
33 stars 20 forks source link

Add handling for controllers with output and treat them as nodes for now #22

Closed aklinkert closed 4 years ago

aklinkert commented 4 years ago

Hey Jeroen,

I ran into the issue during the talk at godays that I needed to talk to a controller providing output ports, so I needed to do this little patch here. Right now a controller with output ports is simply treated as a node, without caring for controller <-> controller communication.

Plus until now I cannot explain why the bugfix in line 262 was really necessary ...

if node.DMXBuffer[address] == nil {
    node.DMXBuffer[address] = &dmxBuffer{}
}