diff options
author | Loïc Collignon <loic.collignon@iot.bzh> | 2018-11-23 09:38:30 +0100 |
---|---|---|
committer | Loïc Collignon <loic.collignon@iot.bzh> | 2018-12-19 18:03:15 +0100 |
commit | 4674ea3a6f5f37c359ca651edf0aa447226480ad (patch) | |
tree | 9750c39c50c7042f5599cc9e1a678affef1aa06a | |
parent | c5d92d9aad200bb9a714be1254cd47a07c65d844 (diff) |
Fix json format changed since v3
Using APIv3 the json format for a response of an API call has changed a
bit, removing one extra useless level.
BUG: SPEC-1973
Change-Id: If5cfcda5740cf48637257a510f030dc84e853057
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
-rw-r--r-- | app/mixer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mixer.cpp b/app/mixer.cpp index f231b6d..ccb16d6 100644 --- a/app/mixer.cpp +++ b/app/mixer.cpp @@ -83,7 +83,7 @@ void Mixer::getVolume(const QString& name) { // TODO: Success, update the slider qDebug() << "Volume changed: " << v; - int newVolume = v.toObject()["response"].toObject()["response"].toObject()["volnew"].toInt(); + int newVolume = v.toObject()["response"].toObject()["volnew"].toInt(); auto currentVolume = volumes_.find(name); if (currentVolume != volumes_.end() && *currentVolume == newVolume) return; |