mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 10:31:34 -08:00
example 'meshtastic', add iOS version, background ini, startup animation
This commit is contained in:
parent
1f72af5440
commit
0446628830
25 changed files with 181 additions and 111 deletions
|
|
@ -17,8 +17,6 @@ BLE::BLE(const QBluetoothUuid& uuid) : mainServiceUuid(uuid) {
|
|||
connect(discoveryAgent, QOverload<QBluetoothDeviceDiscoveryAgent::Error>::of(&QBluetoothDeviceDiscoveryAgent::error),
|
||||
this, &BLE::deviceScanError);
|
||||
connect(discoveryAgent, &QBluetoothDeviceDiscoveryAgent::finished, this, &BLE::deviceScanFinished);
|
||||
|
||||
QTimer::singleShot(0, this, &BLE::startDeviceDiscovery);
|
||||
}
|
||||
|
||||
void BLE::startDeviceDiscovery() {
|
||||
|
|
@ -60,8 +58,7 @@ void BLE::scanServices() {
|
|||
if (controller && (previousAddress != currentDevice.address())) {
|
||||
Q_EMIT deviceDisconnecting();
|
||||
controller->disconnectFromDevice();
|
||||
delete controller;
|
||||
controller = nullptr;
|
||||
delete controller; controller = nullptr;
|
||||
}
|
||||
|
||||
if (!controller) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue