summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gatoperipheral.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gatoperipheral.cpp b/gatoperipheral.cpp
index cc4d6db..2225672 100644
--- a/gatoperipheral.cpp
+++ b/gatoperipheral.cpp
@@ -276,6 +276,7 @@ void GatoPeripheral::readValue(const GatoCharacteristic &characteristic)
GatoService &our_service = d->services[service_handle];
Q_ASSERT(our_service.containsCharacteristic(char_handle));
+ Q_UNUSED(our_service);
if (state() == StateConnected) {
uint req = d->att->requestRead(characteristic.valueHandle(),
@@ -303,6 +304,7 @@ void GatoPeripheral::readValue(const GatoDescriptor &descriptor)
GatoService &our_service = d->services[service_handle];
Q_ASSERT(our_service.containsCharacteristic(char_handle));
+ Q_UNUSED(our_service);
if (state() == StateConnected) {
uint req = d->att->requestRead(descriptor.handle(),
@@ -327,6 +329,7 @@ void GatoPeripheral::writeValue(const GatoCharacteristic &characteristic, const
GatoService &our_service = d->services[service_handle];
Q_ASSERT(our_service.containsCharacteristic(char_handle));
+ Q_UNUSED(our_service);
if (state() == StateConnected) {
switch (type) {
@@ -362,6 +365,7 @@ void GatoPeripheral::writeValue(const GatoDescriptor &descriptor, const QByteArr
GatoService &our_service = d->services[service_handle];
Q_ASSERT(our_service.containsCharacteristic(char_handle));
+ Q_UNUSED(our_service);
if (state() == StateConnected) {
d->att->requestWrite(descriptor.handle(), data,