mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-18 22:41:44 +02:00
Revert "Continue even if discoverServices return false"
This reverts commit d29884d0ff
.
This commit is contained in:
@@ -660,6 +660,8 @@ public abstract class BluetoothCommunication {
|
|||||||
public void run() {
|
public void run() {
|
||||||
if (!gatt.discoverServices()) {
|
if (!gatt.discoverServices()) {
|
||||||
Timber.e("Could not start service discovery");
|
Timber.e("Could not start service discovery");
|
||||||
|
setBtStatus(BT_STATUS_CODE.BT_CONNECTION_LOST);
|
||||||
|
disconnect(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
Reference in New Issue
Block a user