diff options
author | cbdev <cb@cbcdn.com> | 2020-03-07 00:01:35 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2020-03-07 00:01:35 +0100 |
commit | d72d7cc6366f901eb9503bac613e3bc280ac8fc5 (patch) | |
tree | 1b2788daa3dfa4901d7ce54b4c200f21ec30c304 /backends | |
parent | 3a53a29df4c762a1ea3891be24615f74469b6be2 (diff) | |
download | midimonster-d72d7cc6366f901eb9503bac613e3bc280ac8fc5.tar.gz midimonster-d72d7cc6366f901eb9503bac613e3bc280ac8fc5.tar.bz2 midimonster-d72d7cc6366f901eb9503bac613e3bc280ac8fc5.zip |
Whitespace fixes
Diffstat (limited to 'backends')
-rw-r--r-- | backends/artnet.c | 2 | ||||
-rw-r--r-- | backends/openpixelcontrol.c | 1 | ||||
-rw-r--r-- | backends/sacn.c | 4 |
3 files changed, 3 insertions, 4 deletions
diff --git a/backends/artnet.c b/backends/artnet.c index f1b8c0e..9fac332 100644 --- a/backends/artnet.c +++ b/backends/artnet.c @@ -356,7 +356,7 @@ static int artnet_handle(size_t num, managed_fd* fds){ for(u = 0; u < artnet_fds; u++){ for(c = 0; c < artnet_fd[u].output_instances; c++){ synthesize_delta = timestamp - artnet_fd[u].output_instance[c].last_frame; - if((artnet_fd[u].output_instance[c].mark + if((artnet_fd[u].output_instance[c].mark && synthesize_delta >= ARTNET_FRAME_TIMEOUT + ARTNET_SYNTHESIZE_MARGIN) //synthesize next frame || synthesize_delta >= ARTNET_KEEPALIVE_INTERVAL){ //keepalive timeout inst = mm_instance_find(BACKEND_NAME, artnet_fd[u].output_instance[c].label); diff --git a/backends/openpixelcontrol.c b/backends/openpixelcontrol.c index ca395d3..d9d7d4b 100644 --- a/backends/openpixelcontrol.c +++ b/backends/openpixelcontrol.c @@ -1,5 +1,4 @@ #define BACKEND_NAME "openpixelcontrol" -#define DEBUG #include <string.h> diff --git a/backends/sacn.c b/backends/sacn.c index 54cc7b5..79ffb46 100644 --- a/backends/sacn.c +++ b/backends/sacn.c @@ -223,7 +223,7 @@ static channel* sacn_channel(instance* inst, char* spec, uint8_t flags){ char* spec_next = spec; unsigned chan_a = strtoul(spec, &spec_next, 10), chan_b = 0; - + //range check if(!chan_a || chan_a > 512){ LOGPF("Channel out of range on instance %s: %s", inst->name, spec); @@ -540,7 +540,7 @@ static int sacn_handle(size_t num, managed_fd* fds){ } //update next frame request - if(global_cfg.fd[u].universe[c].mark + if(global_cfg.fd[u].universe[c].mark && (!global_cfg.next_frame || global_cfg.next_frame > SACN_FRAME_TIMEOUT + SACN_SYNTHESIZE_MARGIN - synthesize_delta)){ global_cfg.next_frame = SACN_FRAME_TIMEOUT + SACN_SYNTHESIZE_MARGIN - synthesize_delta; } |