mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
BLE: minor code cleanup
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
bf3cc2f64b
commit
a8468caaa2
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue