mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Trivial code cleanup
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
8911281593
commit
fbaaa64a4a
1 changed files with 4 additions and 2 deletions
|
@ -69,7 +69,7 @@ void BLEObject::characteristcStateChanged(const QLowEnergyCharacteristic &c, con
|
|||
hw_credit--;
|
||||
receivedPackets.append(value);
|
||||
if (hw_credit == MINIMAL_HW_CREDIT)
|
||||
setHwCredit(MAXIMAL_HW_CREDIT - hw_credit);
|
||||
setHwCredit(MAXIMAL_HW_CREDIT - MINIMAL_HW_CREDIT);
|
||||
} else {
|
||||
qDebug() << "ignore packet from" << c.uuid() << value.toHex();
|
||||
}
|
||||
|
@ -94,7 +94,9 @@ void BLEObject::characteristicWritten(const QLowEnergyCharacteristic &c, const Q
|
|||
|
||||
void BLEObject::writeCompleted(const QLowEnergyDescriptor &d, const QByteArray &value)
|
||||
{
|
||||
qDebug() << "BLE write completed on" << d.name() << d.value();
|
||||
Q_UNUSED(value)
|
||||
Q_UNUSED(d)
|
||||
qDebug() << "BLE write completed";
|
||||
}
|
||||
|
||||
void BLEObject::addService(const QBluetoothUuid &newService)
|
||||
|
|
Loading…
Add table
Reference in a new issue