aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/sacn.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-03-11 20:50:29 +0100
committercbdev <cb@cbcdn.com>2020-03-11 20:50:29 +0100
commit678cc465124ad81dcec47c44cc30827e5246bd3b (patch)
treec409f37f5d0c7784155a645abda74f1ab0ea0596 /backends/sacn.c
parent20803bd7d7578706ad55b56cf1a4d8865b5c1285 (diff)
downloadmidimonster-678cc465124ad81dcec47c44cc30827e5246bd3b.tar.gz
midimonster-678cc465124ad81dcec47c44cc30827e5246bd3b.tar.bz2
midimonster-678cc465124ad81dcec47c44cc30827e5246bd3b.zip
Simplify ArtNet & sACN
Diffstat (limited to 'backends/sacn.c')
-rw-r--r--backends/sacn.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/backends/sacn.c b/backends/sacn.c
index dd05dc7..c9be8ff 100644
--- a/backends/sacn.c
+++ b/backends/sacn.c
@@ -431,12 +431,10 @@ static int sacn_process_frame(instance* inst, sacn_frame_root* frame, sacn_frame
if(inst_data->data.map[u] & MAP_MARK){
//unmark and get channel
inst_data->data.map[u] &= ~MAP_MARK;
+ chan = inst_data->data.channel + u;
if(inst_data->data.map[u] & MAP_FINE){
chan = inst_data->data.channel + MAPPED_CHANNEL(inst_data->data.map[u]);
}
- else{
- chan = inst_data->data.channel + u;
- }
if(!chan){
LOGPF("Active channel %" PRIsize_t " on %s not known to core", u, inst->name);