From 5c98cf35d7eecaa6f89f7d27eb6806562620c353 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Fri, 28 Apr 2017 21:30:39 +0200 Subject: 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 --- core/qtserialbluetooth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3-70-g09d2