aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-12-13 22:50:32 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 11:00:49 +0100
commitbf0813cde040efd6ba74fc4947ed0531493084d0 (patch)
tree2ab675fae4e8ea0786a94cc3c9eff7e0ffaa4a21
parent66f40a59436c09c6da3042659d96e4dfbf0f4526 (diff)
Fix wrong timestamp type use to retrieve value.
Change-Id: I884a7957325a57a97dd562d620e11167f452edf2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--plugins/low-can.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/low-can.cpp b/plugins/low-can.cpp
index 011b9a9..27089e1 100644
--- a/plugins/low-can.cpp
+++ b/plugins/low-can.cpp
@@ -138,7 +138,7 @@ CTLP_CAPI (isOpen, source, argsJ, eventJ) {
struct signalCBT* context = reinterpret_cast<struct signalCBT*>(source->context);
struct pluginCtxT* pluginCtx = reinterpret_cast<struct pluginCtxT*>(context->pluginCtx);
- int err = wrap_json_unpack(eventJ, "{ss,sb,s?F}",
+ int err = wrap_json_unpack(eventJ, "{ss,sb,s?I}",
"name", &eventName,
"value", &eventStatus,
"timestamp", &timestamp);