summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-04-18 21:48:21 +0200
committerLiang Qi <liang.qi@qt.io>2017-04-18 22:13:02 +0200
commit5391a325eadcee86a494aa96a3f8edae1be55556 (patch)
treebf1fac1ecfc8721084850f70b7e98a825c0a2515
parent60d27ebd2977eee384461469053755c6ba36f102 (diff)
parent519ac44fbbeed7ab74fc1f733fcf9057075d0946 (diff)
Merge remote-tracking branch 'origin/5.8' into 5.9v5.9.0-beta3
Conflicts: src/bluetooth/qbluetoothsocket_bluez.cpp Change-Id: I37e21b3c636a241a357bc81fc23da51303b94623
-rw-r--r--src/android/bluetooth/src/org/qtproject/qt5/android/bluetooth/QtBluetoothLE.java4
-rw-r--r--src/bluetooth/qbluetoothsocket_bluez.cpp6
2 files changed, 4 insertions, 6 deletions
diff --git a/src/android/bluetooth/src/org/qtproject/qt5/android/bluetooth/QtBluetoothLE.java b/src/android/bluetooth/src/org/qtproject/qt5/android/bluetooth/QtBluetoothLE.java
index cb7b2dc9..59ed0992 100644
--- a/src/android/bluetooth/src/org/qtproject/qt5/android/bluetooth/QtBluetoothLE.java
+++ b/src/android/bluetooth/src/org/qtproject/qt5/android/bluetooth/QtBluetoothLE.java
@@ -187,8 +187,8 @@ public class QtBluetoothLE {
switch (status) {
case BluetoothGatt.GATT_SUCCESS:
errorCode = 0; break; //QLowEnergyController::NoError
- case 8: // link loss
- case 22: // BTA_GATT_CONN_LMP_TIMEOUT
+ case 8: // BLE_HCI_CONNECTION_TIMEOUT
+ case 22: // BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION
Log.w(TAG, "Connection Error: Try to delay connect() call after previous activity");
errorCode = 5; break; //QLowEnergyController::ConnectionError
default:
diff --git a/src/bluetooth/qbluetoothsocket_bluez.cpp b/src/bluetooth/qbluetoothsocket_bluez.cpp
index f430d3b4..42c5503b 100644
--- a/src/bluetooth/qbluetoothsocket_bluez.cpp
+++ b/src/bluetooth/qbluetoothsocket_bluez.cpp
@@ -251,8 +251,7 @@ void QBluetoothSocketPrivate::_q_writeNotify()
break;
default:
// every other case returns error
- errorString = QBluetoothSocket::tr("Network Error: %1")
- .arg(qt_error_string(errno));
+ errorString = QBluetoothSocket::tr("Network Error: %1").arg(qt_error_string(errno)) ;
q->setSocketError(QBluetoothSocket::NetworkError);
break;
}
@@ -507,8 +506,7 @@ qint64 QBluetoothSocketPrivate::writeData(const char *data, qint64 maxSize)
sz = 0;
break;
default:
- errorString = QBluetoothSocket::tr("Network Error: %1")
- .arg(qt_error_string(errno));
+ errorString = QBluetoothSocket::tr("Network Error: %1").arg(qt_error_string(errno));
q->setSocketError(QBluetoothSocket::NetworkError);
}
}