mirror of
https://gitlab.com/eql/lqml.git
synced 2026-01-04 08:11:52 -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() {
|
void BLE::serviceScanDone() {
|
||||||
scanned = true;
|
if (mainService != nullptr) {
|
||||||
Q_EMIT mainServiceReady();
|
scanned = true;
|
||||||
qDebug() << "service scan done";
|
Q_EMIT mainServiceReady();
|
||||||
|
qDebug() << "service scan done";
|
||||||
#if QT_VERSION >= 0x060000
|
#if QT_VERSION >= 0x060000
|
||||||
qDebug() << "MTU:" << controller->mtu();
|
qDebug() << "MTU:" << controller->mtu();
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void BLE::connectToService(const QString& uuid) {
|
void BLE::connectToService(const QString& uuid) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue