From 58e5252557fb0eea1585cd9624e1da0a730d9a4c Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 15 May 2016 14:03:59 +0200 Subject: cethcan: ttyDMX --- cethcan/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cethcan/main.c') diff --git a/cethcan/main.c b/cethcan/main.c index 2b9154e..8d38757 100644 --- a/cethcan/main.c +++ b/cethcan/main.c @@ -81,6 +81,13 @@ int main(int argc, char **argv) return 1; } + json_t *dmxcfg = json_object_get(config, "ttydmx"); + for (size_t i = 0; i < json_array_size(dmxcfg); i++) { + json_t *c = json_array_get(dmxcfg, i); + if (ttydmx_init_conf(c)) + return 1; + } + http_init(); json_decref(config); -- cgit v1.2.1