mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 21:03:23 +00:00
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>
This commit is contained in:
parent
cd27c1cd44
commit
5c98cf35d7
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
#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
|
// Try to connect to the device using the uuid of the Serial Port Profile service
|
||||||
QBluetoothAddress remoteDeviceAddress(devaddr);
|
QBluetoothAddress remoteDeviceAddress(devaddr);
|
||||||
serial_port->socket->connectToService(remoteDeviceAddress, QBluetoothUuid(QBluetoothUuid::SerialPort));
|
serial_port->socket->connectToService(remoteDeviceAddress, 1, QIODevice::ReadWrite | QIODevice::Unbuffered);
|
||||||
timer.start(msec);
|
timer.start(msec);
|
||||||
loop.exec();
|
loop.exec();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue