diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2017-08-20 17:16:28 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-12-13 14:57:57 +0100 |
commit | 9e8fb48bc13f3ef4848a54c7a2415cb25339fef0 (patch) | |
tree | 763615143ab69ff7da8812533e5c1e340a5b94b1 /ctl-dispatch.c | |
parent | b9776b0f51b2d23584b962d1aa93d5028118fcaf (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"); |