summaryrefslogtreecommitdiffstats
path: root/core/qt-ble.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-06 01:37:21 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-06 01:37:21 -0700
commita8468caaa21c754084161a0c504e9b526d159c71 (patch)
treef0286c6fd06e88fa83b323ff6763c542f7e6c2a7 /core/qt-ble.cpp
parentbf3cc2f64b58c630ff9b1c234bded9ea43ee02e0 (diff)
downloadsubsurface-a8468caaa21c754084161a0c504e9b526d159c71.tar.gz
BLE: minor code cleanup
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/qt-ble.cpp')
-rw-r--r--core/qt-ble.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp
index 61a0c5647..71ac9bcbf 100644
--- a/core/qt-ble.cpp
+++ b/core/qt-ble.cpp
@@ -85,7 +85,6 @@ void BLEObject::characteristicWritten(const QLowEnergyCharacteristic &c, const Q
void BLEObject::writeCompleted(const QLowEnergyDescriptor &d, const QByteArray &value)
{
- Q_UNUSED(d)
Q_UNUSED(value)
qDebug() << "BLE write completed on" << d.name() << d.value();
@@ -104,8 +103,7 @@ void BLEObject::addService(const QBluetoothUuid &newService)
*/
if (newService != QUuid("{0000fefb-0000-1000-8000-00805f9b34fb}"))
return; // skip all services except the right one
- } else
- if (isStandardUuid) {
+ } else if (isStandardUuid) {
qDebug () << " .. ignoring standard service";
return;
}