diff options
Diffstat (limited to 'core/btdiscovery.cpp')
-rw-r--r-- | core/btdiscovery.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index e4c17902e..c3f6c9b36 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -301,6 +301,13 @@ bool BTDiscovery::checkException(const char* method, const QAndroidJniObject *ob } #endif // Q_OS_ANDROID +void BTDiscovery::discoverAddress(QString address) +{ + if (!btDeviceInfo.keys().contains(address) && !discoveryAgent->isActive()) { + qDebug() << "restarting discovery agent"; + discoveryAgent->start(); + } +} bool isBluetoothAddress(const QString &address) { |