diff options
author | David Lamparter <equinox@diac24.net> | 2013-10-07 01:08:18 +0000 |
---|---|---|
committer | root <root@beaglebone.local.sublab.org> | 2013-10-07 01:08:18 +0000 |
commit | 60aa74a2eb4aa23e355afb78dc2f24c511406aef (patch) | |
tree | 5fa4b063be9607484b02d759b27a663edb9ca3da /cethcan | |
parent | 64939115e9235a9ec0791cd0581cb0ad2cb97178 (diff) |
espnet: bump longpoll on DMX update
Diffstat (limited to 'cethcan')
-rw-r--r-- | cethcan/espnet.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cethcan/espnet.c b/cethcan/espnet.c index 2cfd157..8915837 100644 --- a/cethcan/espnet.c +++ b/cethcan/espnet.c @@ -59,6 +59,8 @@ struct espnet_device *espnet_find(const char *name) int espnet_set(struct espnet_device *dev, unsigned r, unsigned g, unsigned b) { + bool bump = dev->r != r || dev->g != g || dev->b != b; + dev->r = r; dev->g = g; dev->b = b; @@ -70,6 +72,8 @@ int espnet_set(struct espnet_device *dev, unsigned r, unsigned g, unsigned b) event_add(dev->sink->writer, &tvs); dev->sink->writer_resched = true; } + if (bump) + json_bump_longpoll(); return 0; } |