mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-15 14:51:14 -08:00
example 'meshtastic': fix possible BLE crash
This commit is contained in:
parent
29356f5142
commit
21e46841ef
1 changed files with 6 additions and 4 deletions
|
|
@ -136,12 +136,14 @@ void BLE::addLowEnergyService(const QBluetoothUuid& serviceUuid) {
|
|||
}
|
||||
|
||||
void BLE::serviceScanDone() {
|
||||
scanned = true;
|
||||
Q_EMIT mainServiceReady();
|
||||
qDebug() << "service scan done";
|
||||
if (mainService != nullptr) {
|
||||
scanned = true;
|
||||
Q_EMIT mainServiceReady();
|
||||
qDebug() << "service scan done";
|
||||
#if QT_VERSION >= 0x060000
|
||||
qDebug() << "MTU:" << controller->mtu();
|
||||
qDebug() << "MTU:" << controller->mtu();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
void BLE::connectToService(const QString& uuid) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue