summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJavier S. Pedro <dev.git@javispedro.com>2014-09-14 22:27:38 +0200
committerJavier S. Pedro <dev.git@javispedro.com>2014-09-14 22:27:38 +0200
commit83e7a899288ff650c5ab7be9dfbaccf7427d3efe (patch)
tree83d42f227e33ced6606c78017305ba0f7d92556b /src
parent48465074989a7c1f2e757b5b67d41b3583dbb7ac (diff)
downloadsalmeta-83e7a899288ff650c5ab7be9dfbaccf7427d3efe.tar.gz
salmeta-83e7a899288ff650c5ab7be9dfbaccf7427d3efe.zip
fix reconnection issue
Diffstat (limited to 'src')
-rw-r--r--src/metawatchbletransport.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/metawatchbletransport.cpp b/src/metawatchbletransport.cpp
index 56039d3..16ba88e 100644
--- a/src/metawatchbletransport.cpp
+++ b/src/metawatchbletransport.cpp
@@ -91,6 +91,9 @@ void MetaWatchBLETransport::handleDeviceConnected()
QList<GatoUUID> interesting_services;
interesting_services << ServiceUuid;
_dev->discoverServices();
+ } else {
+ // Directly use the services in cache
+ handleDeviceServices();
}
}
@@ -113,7 +116,7 @@ void MetaWatchBLETransport::handleDeviceServices()
void MetaWatchBLETransport::handleDeviceCharacteristics(const GatoService &service)
{
- qDebug() << "Got characteristic";
+ qDebug() << "Got characteristics";
foreach (const GatoCharacteristic &c, service.characteristics()) {
if (c.uuid() == InputCharacteristicUuid) {
_in = c;