diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gps.cpp | 2 | ||||
-rw-r--r-- | plugins/low-can.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gps.cpp b/plugins/gps.cpp index 4913f31..92120f7 100644 --- a/plugins/gps.cpp +++ b/plugins/gps.cpp @@ -62,7 +62,7 @@ CTLP_CAPI (getHeading, source, argsJ, eventJ) { ctx->setSignalValue(ctx->aSignal, 0, json_object_new_double(heading)); } - AFB_NOTICE("======== Heading: %f", heading); + AFB_API_NOTICE(source->api, "======== Heading: %f", heading); return err; } // extern "C" closure diff --git a/plugins/low-can.cpp b/plugins/low-can.cpp index ded20f1..8eec886 100644 --- a/plugins/low-can.cpp +++ b/plugins/low-can.cpp @@ -121,7 +121,7 @@ CTLP_CAPI (subscribeToLow, source, argsJ, eventJ) { { json_object_get(pluginCtx->subscriptionBatch); AFB_DEBUG("Calling subscribe with %s", json_object_to_json_string(pluginCtx->subscriptionBatch)); - err = afb_service_call_sync("low-can", "subscribe", pluginCtx->subscriptionBatch, &responseJ); + err = afb_api_call_sync_legacy(source->api, "low-can", "subscribe", pluginCtx->subscriptionBatch, &responseJ); if(err) {AFB_ERROR("Subscribe to '%s' responseJ:%s", json_object_to_json_string(pluginCtx->subscriptionBatch), json_object_to_json_string(responseJ));} |