BLE: minor code cleanup

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-07-06 01:37:21 -07:00
parent bf3cc2f64b
commit a8468caaa2

View file

@ -85,7 +85,6 @@ void BLEObject::characteristicWritten(const QLowEnergyCharacteristic &c, const Q
void BLEObject::writeCompleted(const QLowEnergyDescriptor &d, const QByteArray &value) void BLEObject::writeCompleted(const QLowEnergyDescriptor &d, const QByteArray &value)
{ {
Q_UNUSED(d)
Q_UNUSED(value) Q_UNUSED(value)
qDebug() << "BLE write completed on" << d.name() << d.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}")) if (newService != QUuid("{0000fefb-0000-1000-8000-00805f9b34fb}"))
return; // skip all services except the right one return; // skip all services except the right one
} else } else if (isStandardUuid) {
if (isStandardUuid) {
qDebug () << " .. ignoring standard service"; qDebug () << " .. ignoring standard service";
return; return;
} }