aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/sacn.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-03-10 20:44:38 +0100
committercbdev <cb@cbcdn.com>2020-03-10 20:44:38 +0100
commite48583db0e02336381a1626af814549bf12b1214 (patch)
tree96434326528c8c224cdd779cb0fc8d7db17de63f /backends/sacn.c
parent377556e3407b107d6033be246ba6f41e0681f690 (diff)
downloadmidimonster-e48583db0e02336381a1626af814549bf12b1214.tar.gz
midimonster-e48583db0e02336381a1626af814549bf12b1214.tar.bz2
midimonster-e48583db0e02336381a1626af814549bf12b1214.zip
Check ArtNet/sACN channel direction at map time
Diffstat (limited to 'backends/sacn.c')
-rw-r--r--backends/sacn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/sacn.c b/backends/sacn.c
index 79ffb46..9c7f890 100644
--- a/backends/sacn.c
+++ b/backends/sacn.c
@@ -231,6 +231,11 @@ static channel* sacn_channel(instance* inst, char* spec, uint8_t flags){
}
chan_a--;
+ //check output capabilities
+ if((flags & mmchannel_output) && !data->xmit_prio){
+ LOGPF("Channel %s.%s mapped for output, but instance is not configured for output (no priority set)", inst->name, spec);
+ }
+
//if wide channel, mark fine
if(*spec_next == '+'){
chan_b = strtoul(spec_next + 1, NULL, 10);