From 9419ba0174ad8e5e717067ff7f5e9c0d80f08208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 5 Jul 2018 11:49:31 +0200 Subject: [PATCH] Fix bluetooth discoverable mode --- libnymea-core/bluetoothserver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnymea-core/bluetoothserver.cpp b/libnymea-core/bluetoothserver.cpp index a904c43f..63febacb 100644 --- a/libnymea-core/bluetoothserver.cpp +++ b/libnymea-core/bluetoothserver.cpp @@ -86,7 +86,7 @@ void BluetoothServer::onHostModeChanged(const QBluetoothLocalDevice::HostMode &m if (!m_server || !m_localDevice) return; - if (mode != QBluetoothLocalDevice::HostDiscoverable || QBluetoothLocalDevice::HostDiscoverableLimitedInquiry) { + if (mode != QBluetoothLocalDevice::HostDiscoverable || mode != QBluetoothLocalDevice::HostDiscoverableLimitedInquiry) { m_localDevice->powerOn(); m_localDevice->setHostMode(QBluetoothLocalDevice::HostDiscoverableLimitedInquiry); }