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 | 27264c392166c21232e6d5fa63813d4daa45a929 (patch) | |
tree | 1364f8a449177f1d83745b722b0d02d1805969fa /ctl-dispatch.c | |
parent | 9f4ac4a1de339ee6213e2615035d1b535aa2c70d (diff) |
Updated to latest App Template
Diffstat (limited to 'ctl-dispatch.c')
-rw-r--r-- | ctl-dispatch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ctl-dispatch.c b/ctl-dispatch.c index 1708204..0104229 100644 --- a/ctl-dispatch.c +++ b/ctl-dispatch.c @@ -178,6 +178,8 @@ PUBLIC void DispatchOneEvent(const char *evtLabel, json_object *eventJ) { // Event name is mapped on control label and executed as a standard control PUBLIC int DispatchOnLoad(const char *onLoadLabel) { + if (!configHandle) return 1; + DispatchHandleT **onloads = configHandle->onloads; int err = DispatchOneControl(CTL_SOURCE_ONLOAD, onloads, onLoadLabel, NULL, NULL_AFBREQ); @@ -650,7 +652,7 @@ PUBLIC int DispatchInit() { // no dispatch config found remove control API from binder if (!luaLoaded) { - AFB_WARNING("DISPATCH-INIT:WARNING Not Found Control dispatch file [%s]", controlFile); + AFB_WARNING("DISPATCH-INIT:WARNING (setenv CONTROL_CONFIG_PATH) No Config '%s-*.json' in '%s'", controlFile, dirList); } AFB_NOTICE("DISPATCH-INIT:SUCCES: Audio Control Dispatch Init"); |