mirror of
https://gitlab.com/eql/lqml.git
synced 2026-01-14 21:31:08 -08:00
fix
This commit is contained in:
parent
82875485e6
commit
abfdbaa386
1 changed files with 4 additions and 0 deletions
|
|
@ -181,6 +181,10 @@ void BLE::errorReceived(QLowEnergyController::Error) {
|
|||
}
|
||||
|
||||
void BLE::disconnect() {
|
||||
if (controller == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (controller->state() != QLowEnergyController::UnconnectedState) {
|
||||
controller->disconnectFromDevice();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue