diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2017-08-20 17:16:28 +0200 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2017-08-20 17:16:28 +0200 |
commit | d51d083be8e34000cd00ce979445eacb45a16e97 (patch) | |
tree | f049458d72b7c6ebe7bea10770f48db1adfc0646 /Controller-afb/ctl-binding.c | |
parent | c58b7ea33694ab8c76f8cb452d3b8928eb3279ad (diff) |
Updated to latest App Template
Diffstat (limited to 'Controller-afb/ctl-binding.c')
-rw-r--r-- | Controller-afb/ctl-binding.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Controller-afb/ctl-binding.c b/Controller-afb/ctl-binding.c index 8771fc0..ec33f82 100644 --- a/Controller-afb/ctl-binding.c +++ b/Controller-afb/ctl-binding.c @@ -55,9 +55,12 @@ PUBLIC int CtlBindingInit () { errcount += LuaLibInit(); #endif + const char *profile= getenv("CONTROL_ONLOAD_PROFILE"); + if (!profile) profile=CONTROL_ONLOAD_PROFILE; + // now that everything is initialised execute the onload action - if (!errcount) - errcount += DispatchOnLoad(CONTROL_ONLOAD_DEFAULT); + if (!errcount) + errcount += DispatchOnLoad(CONTROL_ONLOAD_PROFILE); AFB_DEBUG ("Audio Policy Control Binding Done errcount=%d", errcount); return errcount; |