From f9a28bc6009d3f0eecc65df9da75faa8c4133fcf Mon Sep 17 00:00:00 2001 From: Nedim Hadzic Date: Mon, 17 Feb 2014 11:33:02 +0100 Subject: 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 --- src/bluetooth/qlowenergycharacteristicinfo_bluez.cpp | 4 ++-- 1 file 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 -#define QT_LOWENERGYCHARACTERISTIC_DEBUG +//#define QT_LOWENERGYCHARACTERISTIC_DEBUG #ifdef QT_LOWENERGYCHARACTERISTIC_DEBUG #include @@ -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 &))); -- cgit v1.2.3