diff options
Diffstat (limited to 'core/qt-ble.cpp')
-rw-r--r-- | core/qt-ble.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp index 8c40b9b19..3deec8e65 100644 --- a/core/qt-ble.cpp +++ b/core/qt-ble.cpp @@ -47,10 +47,8 @@ static void waitFor(int ms) { extern "C" { -void BLEObject::serviceStateChanged(QLowEnergyService::ServiceState s) +void BLEObject::serviceStateChanged(QLowEnergyService::ServiceState) { - Q_UNUSED(s) - QList<QLowEnergyCharacteristic> list; auto service = qobject_cast<QLowEnergyService*>(sender()); @@ -92,10 +90,8 @@ void BLEObject::characteristicWritten(const QLowEnergyCharacteristic &c, const Q } } -void BLEObject::writeCompleted(const QLowEnergyDescriptor &d, const QByteArray &value) +void BLEObject::writeCompleted(const QLowEnergyDescriptor&, const QByteArray&) { - Q_UNUSED(value) - Q_UNUSED(d) qDebug() << "BLE write completed"; } @@ -149,8 +145,6 @@ BLEObject::~BLEObject() dc_status_t BLEObject::write(const void *data, size_t size, size_t *actual) { - Q_UNUSED(actual) // that seems like it might cause problems - if (actual) *actual = 0; if (!receivedPackets.isEmpty()) { @@ -274,9 +268,8 @@ dc_status_t BLEObject::setupHwTerminalIo(QList<QLowEnergyCharacteristic> allC) return setHwCredit(MAXIMAL_HW_CREDIT); } -dc_status_t qt_ble_open(void **io, dc_context_t *context, const char *devaddr, dc_user_device_t *user_device) +dc_status_t qt_ble_open(void **io, dc_context_t *, const char *devaddr, dc_user_device_t *user_device) { - Q_UNUSED(context) debugCounter = 0; QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); |