aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-03-17 01:09:52 +0100
committercbdev <cb@cbcdn.com>2020-03-17 01:09:52 +0100
commit636a9592eab1963c2b1a77bd59eaff317fa55b75 (patch)
tree2ae5844e2f8bbb4e9554157e65ddad93de867896 /backends
parent846a49199ba011a00e4814bacac524a6fe9b299a (diff)
downloadmidimonster-636a9592eab1963c2b1a77bd59eaff317fa55b75.tar.gz
midimonster-636a9592eab1963c2b1a77bd59eaff317fa55b75.tar.bz2
midimonster-636a9592eab1963c2b1a77bd59eaff317fa55b75.zip
Fix registry apply bug, fix openpixelcontrol broadcast
Diffstat (limited to 'backends')
-rw-r--r--backends/openpixelcontrol.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/backends/openpixelcontrol.c b/backends/openpixelcontrol.c
index 168e077..2a5e01f 100644
--- a/backends/openpixelcontrol.c
+++ b/backends/openpixelcontrol.c
@@ -495,11 +495,11 @@ static ssize_t openpixel_client_headerdata(instance* inst, openpixel_client* cli
}
else{
client->buffer = openpixel_buffer_find(data, client->hdr.strip, 1);
- }
- //if no buffer or mode mismatch, ignore data
- if(client->buffer < 0
- || data->mode != client->hdr.mode){
- client->buffer = -2; //mark for ignore
+ //if no buffer or mode mismatch, ignore data
+ if(client->buffer < 0
+ || data->mode != client->hdr.mode){
+ client->buffer = -2; //mark for ignore
+ }
}
client->left = be16toh(client->hdr.length);
client->offset = 0;