This commit is contained in:
pls.153 2024-04-15 17:49:02 +02:00
parent 82875485e6
commit abfdbaa386

View file

@ -181,6 +181,10 @@ void BLE::errorReceived(QLowEnergyController::Error) {
}
void BLE::disconnect() {
if (controller == nullptr) {
return;
}
if (controller->state() != QLowEnergyController::UnconnectedState) {
controller->disconnectFromDevice();
} else {