summaryrefslogtreecommitdiffstats
path: root/signal-composer-binding/signal-composer-binding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'signal-composer-binding/signal-composer-binding.cpp')
-rw-r--r--signal-composer-binding/signal-composer-binding.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/signal-composer-binding/signal-composer-binding.cpp b/signal-composer-binding/signal-composer-binding.cpp
index 36d0c9d..a1e4543 100644
--- a/signal-composer-binding/signal-composer-binding.cpp
+++ b/signal-composer-binding/signal-composer-binding.cpp
@@ -158,13 +158,9 @@ void list(afb_req request)
{json_object_array_add(allSignalsJ, sig->toJSON());}
if(json_object_array_length(allSignalsJ) && !execConf())
- {
- afb_req_success(request, allSignalsJ, NULL);
- }
+ {afb_req_success(request, allSignalsJ, NULL);}
else
- {
- afb_req_fail(request, "error", "No Signals recorded so far");
- }
+ {afb_req_fail(request, "error", "No Signals recorded so far");}
}
/// @brief entry point for get requests.
@@ -176,7 +172,7 @@ void get(struct afb_req request)
const char* sig;
// Process about Raw CAN message on CAN bus directly
- err = wrap_json_unpack(args, "{ss,s?o!}", "signals", &sig,
+ err = wrap_json_unpack(args, "{ss,s?o!}", "signal", &sig,
"options", &options);
if(err)
{