summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-11-22 19:34:09 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-11-22 19:34:35 -0800
commit6f39d006ffbda744c7e5253332f60e40e3685629 (patch)
tree262681968254291b5ffc0f64633736b8fa5fa1a0
parenta41f992461aa703be3515ed7cb0a4d5e412ee44e (diff)
QML: Bluetooth: fix initial paired devices listeel_4.99.3eel/4.99.34.99.3
Paired device count was being set to zero after getting initial list from the bluetooth service. Bug-AGL: SPEC-1123 Change-Id: If4d70e45bcb2b3fcbde3f4ace0d251601e38c157 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r--app/bluetooth/Bluetooth.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/bluetooth/Bluetooth.qml b/app/bluetooth/Bluetooth.qml
index 04c9284..cef0578 100644
--- a/app/bluetooth/Bluetooth.qml
+++ b/app/bluetooth/Bluetooth.qml
@@ -144,8 +144,8 @@ SettingPage {
onCheckedChanged: {
console.log("Bluetooth set to", checked)
if (checked == true) {
- initBTlist()
pairedDeviceCount=0
+ initBTlist()
btOn=true
request(btAPIpath + 'power?value=1', function (o) {
// log the json response