aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--backends/artnet.c4
-rw-r--r--backends/artnet.md2
-rw-r--r--backends/sacn.c4
3 files changed, 4 insertions, 6 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);
diff --git a/backends/artnet.md b/backends/artnet.md
index 7e1ecff..383203d 100644
--- a/backends/artnet.md
+++ b/backends/artnet.md
@@ -3,6 +3,8 @@
The ArtNet backend provides read-write access to the UDP-based ArtNet protocol for lighting
fixture control.
+Art-Netâ„¢ Designed by and Copyright Artistic Licence Holdings Ltd.
+
#### Global configuration
| Option | Example value | Default value | Description |
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);