diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/imagedownloader.h | 2 | ||||
-rw-r--r-- | core/qt-ble.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/core/imagedownloader.h b/core/imagedownloader.h index dc42aee4d..04846a9cc 100644 --- a/core/imagedownloader.h +++ b/core/imagedownloader.h @@ -7,7 +7,7 @@ #include <QNetworkReply> class ImageDownloader : public QObject { - Q_OBJECT; + Q_OBJECT public: ImageDownloader(struct picture *picture); ~ImageDownloader(); 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; |