Index: sources/bluetooth/BluetoothInterface.cpp =================================================================== diff -u -rf7394a2cb3477d81896b9993308dd9654cd3e42e -raa7591d9f61f5d8d5a2b3604d4c37d6cea829700 --- sources/bluetooth/BluetoothInterface.cpp (.../BluetoothInterface.cpp) (revision f7394a2cb3477d81896b9993308dd9654cd3e42e) +++ sources/bluetooth/BluetoothInterface.cpp (.../BluetoothInterface.cpp) (revision aa7591d9f61f5d8d5a2b3604d4c37d6cea829700) @@ -676,11 +676,6 @@ if ( ! sender() ) return; QLowEnergyService *service = reinterpret_cast(sender()); switch (vState) { - case QLowEnergyService::InvalidService : - // After disconnection the services are invalidated by Qt. - // NOTIFY_DETAILS_ERROR - break; - case QLowEnergyService::ServiceDiscovered : { NOTIFY_SERVICE_DETAILS_DONE switch( service->serviceUuid().toUInt32() ) { @@ -706,9 +701,16 @@ break; } // DEBUG: printCharacteristics(service); + break; } + + case QLowEnergyService::InvalidService : + // After disconnection the services are invalidated by Qt. + // NOTIFY_DETAILS_ERROR + break; + default: - break; + break; } } @@ -908,7 +910,7 @@ switch(_device->state()) { case QLowEnergyController::ConnectingState : SKIPPER_TRY; - Q_FALLTHROUGH(); + // FALLTHROUGH case QLowEnergyController::DiscoveredState : // - For QLowEnergyController::DiscoveredState :