summaryrefslogtreecommitdiffstats
path: root/core/qt-ble.cpp
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-07-11 17:11:49 +0200
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2017-07-11 17:11:49 +0200
commitfbaaa64a4a3cf3266b8afe62af578105ec32a374 (patch)
treede41bd556c0c51c22c52e4b2209f255527f38410 /core/qt-ble.cpp
parent891128159352621f6694d6a62b0af6a451b32ec7 (diff)
downloadsubsurface-fbaaa64a4a3cf3266b8afe62af578105ec32a374.tar.gz
Trivial code cleanup
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core/qt-ble.cpp')
-rw-r--r--core/qt-ble.cpp6
1 files changed, 4 insertions, 2 deletions
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)