diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-04-28 21:30:39 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-04-28 17:55:22 -0700 |
commit | 5c98cf35d7eecaa6f89f7d27eb6806562620c353 (patch) | |
tree | da852a3de1f39ff4a6f9f70bda03a227de638559 /core/qtserialbluetooth.cpp | |
parent | cd27c1cd442018c3ab7e68aabaaa0b8cb0b21a7b (diff) | |
download | subsurface-5c98cf35d7eecaa6f89f7d27eb6806562620c353.tar.gz |
Change the Bluetooth connect call signature
By copying a line from the Linux bluetooth code I can download
from OSTC dive computers on Mac. Don't ask me why this works.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/qtserialbluetooth.cpp')
-rw-r--r-- | core/qtserialbluetooth.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/qtserialbluetooth.cpp b/core/qtserialbluetooth.cpp index 20e32f59f..2fef1c754 100644 --- a/core/qtserialbluetooth.cpp +++ b/core/qtserialbluetooth.cpp @@ -132,7 +132,7 @@ static dc_status_t qt_serial_open(void **userdata, const char* devaddr) #elif defined(Q_OS_ANDROID) || (QT_VERSION >= 0x050500 && defined(Q_OS_MAC)) // Try to connect to the device using the uuid of the Serial Port Profile service QBluetoothAddress remoteDeviceAddress(devaddr); - serial_port->socket->connectToService(remoteDeviceAddress, QBluetoothUuid(QBluetoothUuid::SerialPort)); + serial_port->socket->connectToService(remoteDeviceAddress, 1, QIODevice::ReadWrite | QIODevice::Unbuffered); timer.start(msec); loop.exec(); |