diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-11-24 10:50:14 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-11-24 10:50:14 +0100 |
commit | 4f61aeb86c868c4725584e3e01e21e973e5c2818 (patch) | |
tree | 63027a379eb93a21da8398ae720b4446756ab1c2 | |
parent | 227c9b5896fc7d0d9038ef2c2290041f3eca59f0 (diff) |
Return a correct value for 'start'
The returned value was presumed to be garbage.
Change-Id: I72997d267139cc89f5dd5d325fc0512f44859b90
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | binding/radio-binding.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/binding/radio-binding.c b/binding/radio-binding.c index 505ee4c..f9b7e34 100644 --- a/binding/radio-binding.c +++ b/binding/radio-binding.c @@ -305,7 +305,6 @@ static void stop(struct afb_req request) */ static void scan_start(struct afb_req request) { - json_object *ret_json; const char *value = afb_req_value(request, "direction"); int valid = 0; radio_scan_direction_t direction; @@ -337,7 +336,7 @@ static void scan_start(struct afb_req request) return; } radio_impl_scan_start(direction, scan_callback, NULL); - afb_req_success(request, ret_json, NULL); + afb_req_success(request, NULL, NULL); } /* |