ISD-Sound-and-Lights / eyepatch

Fixtures in. Standard out. -- A CLI utility to create a patch standard from a list of lighting fixtures.
0 stars 0 forks source link

Blocking DMX addresses does not work #9

Closed janherbst closed 6 years ago

janherbst commented 6 years ago

Added 5 fixtures, blocked addresses 1-100; generated CSV put addresses within 1-100

il8677 commented 6 years ago

Fixed, problem was caused by for loop that tried to find if DMX allocation space was big enough. It searched up to the size of the required space. So if a fixture set needed 47 addresses, it would only search up to DMX 47 regardless of the current starting address it was looking at. So if it was looking at starting the patch at DMX patch 5, it should be looking up to patch 52, since thats the required space, but instead, it would only look up to 47. Fix was changing for-loop to end at required space + starting patch.