summaryrefslogtreecommitdiffstats
path: root/plugins/lib/bluetooth
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-09-11 17:35:16 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:57:27 +0200
commit106db2e301d8688c0b1353bf7388897b3e91232d (patch)
treec07b11495777cc8b7d0c0160dc4347ca46c89814 /plugins/lib/bluetooth
parent7811ea24243ab10ca56c50abcf152c9f43b511d7 (diff)
Correct an error in Hal-Bt when calling 'mixer'
Correct an error in Hal-Bt plugin when calling 'mixer', response was not correctly analyzed. Change-Id: I719076c77501a9c6776559cd8acfcea033a26d1b Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'plugins/lib/bluetooth')
-rw-r--r--plugins/lib/bluetooth/hal-bt-mixer-link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/lib/bluetooth/hal-bt-mixer-link.c b/plugins/lib/bluetooth/hal-bt-mixer-link.c
index 2c46fb4..9711ea1 100644
--- a/plugins/lib/bluetooth/hal-bt-mixer-link.c
+++ b/plugins/lib/bluetooth/hal-bt-mixer-link.c
@@ -54,7 +54,7 @@ int HalBtMixerLinkSetBtStreamingSettings(AFB_ApiT apiHandle, char *mixerApiName,
mixerApiName);
return -3;
}
- else if(wrap_json_unpack(returnedJ, "{s:{s:s}}", "request", "info", &returnedError)) {
+ else if(! wrap_json_unpack(returnedJ, "{s:{s:s}}", "request", "info", &returnedError)) {
AFB_ApiError(apiHandle,
"Error '%s' happened during set bluetooth streaming settings during call to verb '%s' of api '%s'",
returnedError ? returnedError : "no_error_string",