summaryrefslogtreecommitdiffstats
path: root/core/qt-ble.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/qt-ble.cpp')
-rw-r--r--core/qt-ble.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp
index 5ab81bf35..7353c753d 100644
--- a/core/qt-ble.cpp
+++ b/core/qt-ble.cpp
@@ -190,7 +190,7 @@ dc_status_t BLEObject::read(void *data, size_t size, size_t *actual)
while (msec > 0 && receivedPackets.isEmpty()) {
waitFor(100);
msec -= 100;
- };
+ }
}
// Still no packet?
@@ -236,7 +236,7 @@ dc_status_t BLEObject::setHwCredit(unsigned int c)
while (msec > 0 && !isCharacteristicWritten) {
waitFor(100);
msec -= 100;
- };
+ }
if (!isCharacteristicWritten)
return DC_STATUS_TIMEOUT;
return DC_STATUS_SUCCESS;
@@ -321,7 +321,7 @@ dc_status_t qt_ble_open(dc_custom_io_t *io, dc_context_t *context, const char *d
while (msec > 0 && controller->state() == QLowEnergyController::ConnectingState) {
waitFor(100);
msec -= 100;
- };
+ }
switch (controller->state()) {
case QLowEnergyController::ConnectedState:
@@ -353,7 +353,7 @@ dc_status_t qt_ble_open(dc_custom_io_t *io, dc_context_t *context, const char *d
while (msec > 0 && controller->state() == QLowEnergyController::DiscoveringState) {
waitFor(100);
msec -= 100;
- };
+ }
qDebug() << " .. done discovering services";
if (ble->preferredService() == nullptr) {
@@ -368,7 +368,7 @@ dc_status_t qt_ble_open(dc_custom_io_t *io, dc_context_t *context, const char *d
while (msec > 0 && ble->preferredService()->state() == QLowEnergyService::DiscoveringServices) {
waitFor(100);
msec -= 100;
- };
+ }
if (ble->preferredService()->state() != QLowEnergyService::ServiceDiscovered) {
qDebug() << "failed to find suitable service on" << devaddr;