Skip to content

Commit 422d573

Browse files
committed
Update iconsolebike.cpp
1 parent fa7fc1a commit 422d573

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/devices/iconsolebike/iconsolebike.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void iconsolebike::serviceFinished(void) {
7171
connect(socket, &QBluetoothSocket::connected, this,
7272
QOverload<>::of(&iconsolebike::rfCommConnected));
7373
connect(socket, &QBluetoothSocket::disconnected, this, &iconsolebike::disconnected);
74-
connect(socket, QOverload<QBluetoothSocket::SocketError>::of(&QBluetoothSocket::error), this,
74+
connect(socket, QOverload<QBluetoothSocket::SocketError>::of(&QBluetoothSocket::errorOccurred), this,
7575
&iconsolebike::onSocketErrorOccurred);
7676

7777
#ifdef Q_OS_ANDROID
@@ -81,7 +81,7 @@ void iconsolebike::serviceFinished(void) {
8181
emit debug(QStringLiteral("Create socket"));
8282
if (!found) {
8383
qDebug() << QStringLiteral("iconsolebike::serviceFinished, no service found, trying workaround");
84-
socket->connectToService(bluetoothDevice.address(), QBluetoothUuid(QBluetoothUuid::SerialPort));
84+
socket->connectToService(bluetoothDevice.address(), QBluetoothUuid(QBluetoothUuid::ServiceClassUuid::SerialPort));
8585
} else {
8686
socket->connectToService(serialPortService);
8787
}

0 commit comments

Comments
 (0)