From fbaaa64a4a3cf3266b8afe62af578105ec32a374 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Tue, 11 Jul 2017 17:11:49 +0200 Subject: Trivial code cleanup Signed-off-by: Jan Mulder --- core/qt-ble.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp index a8002b49b..967827db1 100644 --- a/core/qt-ble.cpp +++ b/core/qt-ble.cpp @@ -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) -- cgit v1.2.3-70-g09d2