aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/artnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'backends/artnet.c')
-rw-r--r--backends/artnet.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/backends/artnet.c b/backends/artnet.c
index 5d26b31..7d5d9ee 100644
--- a/backends/artnet.c
+++ b/backends/artnet.c
@@ -316,12 +316,10 @@ static inline int artnet_process_frame(instance* inst, artnet_pkt* frame){
for(p = 0; p <= max_mark; p++){
if(data->data.map[p] & MAP_MARK){
data->data.map[p] &= ~MAP_MARK;
+ chan = data->data.channel + p;
if(data->data.map[p] & MAP_FINE){
chan = data->data.channel + MAPPED_CHANNEL(data->data.map[p]);
}
- else{
- chan = data->data.channel + p;
- }
if(!chan){
LOGPF("Active channel %" PRIsize_t " on %s not known to core", p, inst->name);