summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNedim Hadzic <nhadzic@blackberry.com>2014-02-17 11:33:02 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-21 21:40:45 +0100
commitf9a28bc6009d3f0eecc65df9da75faa8c4133fcf (patch)
treecd87e8686965b4fa984d5b11c5990caf6e1ec3c5 /src
parenteea868ab5ffb925eadca66b25ff96cdaae5b0111 (diff)
Fix for enabling BLE notifications on Linux implemented
For some devices it was not possible to enable notification because of the if clause. One warning in the constructor fixed. Change-Id: Ic11ce4109829eeb2022490f256f4e873ef3073a5 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/bluetooth/qlowenergycharacteristicinfo_bluez.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bluetooth/qlowenergycharacteristicinfo_bluez.cpp b/src/bluetooth/qlowenergycharacteristicinfo_bluez.cpp
index eb3b61ec..bcfd898e 100644
--- a/src/bluetooth/qlowenergycharacteristicinfo_bluez.cpp
+++ b/src/bluetooth/qlowenergycharacteristicinfo_bluez.cpp
@@ -46,7 +46,7 @@
#include <QtDBus/QDBusPendingCallWatcher>
-#define QT_LOWENERGYCHARACTERISTIC_DEBUG
+//#define QT_LOWENERGYCHARACTERISTIC_DEBUG
#ifdef QT_LOWENERGYCHARACTERISTIC_DEBUG
#include <QtCore/QDebug>
@@ -130,7 +130,7 @@ void QLowEnergyCharacteristicInfoPrivate::replyReceived(const QString &reply)
void QLowEnergyCharacteristicInfoPrivate::setValue(const QByteArray &wantedValue)
{
- if (permission & QLowEnergyCharacteristicInfo::Write) {
+ if (permission & QLowEnergyCharacteristicInfo::Write || notification) {
process = process->instance();
if (!m_signalConnected) {
connect(process, SIGNAL(replySend(const QString &)), this, SLOT(replyReceived(const QString &)));