1
0
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:
Erik Johansson
2018-10-14 22:16:37 +02:00
parent d29884d0ff
commit d5b5eb58d4

View File

@@ -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);