diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-08-24 20:14:18 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-10-08 15:56:09 +0200 |
commit | 15bdf070c2805f81bfecf523cef46b1acd1c82ac (patch) | |
tree | eba408572898c0524d2f638972ad0e562276cf40 | |
parent | d2c0a54d9d9075ffcf3812ffc5d93061d2e40694 (diff) |
Correct an error when unpacking alsacore response
Correct an error when unpacking alsacore event subscription response.
Change-Id: I39d331303d99363c36444fa642e8cb4ca16e84d8
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
-rw-r--r-- | 4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c index bd05090..3f3e3b2 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c @@ -167,7 +167,7 @@ int HalCtlsSubscribeToAlsaCardEvent(AFB_ApiT apiHandle, char *cardId) returnedInfo ? returnedInfo : "not returned"); err = -1; } - else if(! wrap_json_unpack(returnedJ, "{s:{s:o}}", "info", &returnedWarningJ)) { + else if(! wrap_json_unpack(returnedJ, "{s:{s:o}}", "request", "info", &returnedWarningJ)) { AFB_ApiError(apiHandle, "Warning raised during call to verb %s of %s api : '%s'", ALSACORE_SUBSCRIBE_VERB, |