summaryrefslogtreecommitdiffstats
path: root/plugins/builtin.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-12-18 15:20:13 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-18 17:40:02 +0100
commit1b3411359d6a0e53f12811436a5410104816da34 (patch)
tree0f00b876b61eea6ffc46ed6e4d0f20914c399e1d /plugins/builtin.cpp
parent7ecafda0fb26647381f45b45f5b7d1ed0d252165 (diff)
Update documentation
Change-Id: I82edfc5111805cf5e2affad1a6366d1144006fbf Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'plugins/builtin.cpp')
-rw-r--r--plugins/builtin.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/builtin.cpp b/plugins/builtin.cpp
index 4f2d239..5eccc24 100644
--- a/plugins/builtin.cpp
+++ b/plugins/builtin.cpp
@@ -36,7 +36,6 @@ CTLP_CAPI (defaultOnReceived, source, argsJ, eventJ)
AFB_NOTICE("source: %s argj: %s, eventJ %s", source->uid,
json_object_to_json_string(argsJ),
json_object_to_json_string(eventJ));
- void* sig = ctx->aSignal;
json_object* valueJ = nullptr;
json_object* timestampJ = nullptr;
@@ -48,7 +47,7 @@ CTLP_CAPI (defaultOnReceived, source, argsJ, eventJ)
{timestamp = json_object_get_int64(timestampJ);}
struct signalValue v = value;
- ctx->setSignalValue(sig, timestamp, v);
+ ctx->setSignalValue(ctx->aSignal, timestamp, v);
return 0;
}