aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-08-01 20:04:25 +0200
committercbdev <cb@cbcdn.com>2020-08-01 20:04:25 +0200
commit7f2f36ddaa9c8311404248c69cc686bac6264ceb (patch)
tree98dd5bb6cc09ad7a2376dbd89cf14ce63e4331bf
parent6291031a98539bdf51262329b0dc20604c2bad70 (diff)
downloadmidimonster-7f2f36ddaa9c8311404248c69cc686bac6264ceb.tar.gz
midimonster-7f2f36ddaa9c8311404248c69cc686bac6264ceb.tar.bz2
midimonster-7f2f36ddaa9c8311404248c69cc686bac6264ceb.zip
Allow initial maweb event push even for zero values (#74)
-rw-r--r--backends/maweb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/maweb.c b/backends/maweb.c
index 33d2b7e..39ef7a6 100644
--- a/backends/maweb.c
+++ b/backends/maweb.c
@@ -249,7 +249,7 @@ static int maweb_instance(instance* inst){
static channel* maweb_channel(instance* inst, char* spec, uint8_t flags){
maweb_instance_data* data = (maweb_instance_data*) inst->impl;
maweb_channel_data chan = {
- 0
+ .in = -1 //this hack allows the initial data request to push events even for zero'ed channels
};
char* next_token = NULL;
channel* channel_ref = NULL;