mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-27 10:15:00 +02:00
@@ -306,6 +306,7 @@ public abstract class BluetoothCommunication {
|
|||||||
public void onServicesDiscovered(BluetoothPeripheral peripheral) {
|
public void onServicesDiscovered(BluetoothPeripheral peripheral) {
|
||||||
Timber.d("Successful Bluetooth services discovered");
|
Timber.d("Successful Bluetooth services discovered");
|
||||||
onBluetoothDiscovery(peripheral);
|
onBluetoothDiscovery(peripheral);
|
||||||
|
resumeMachineState();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -390,6 +391,7 @@ public abstract class BluetoothCommunication {
|
|||||||
) {
|
) {
|
||||||
Timber.d("Do LE scan before connecting to device");
|
Timber.d("Do LE scan before connecting to device");
|
||||||
central.scanForPeripheralsWithAddresses(new String[]{macAddress});
|
central.scanForPeripheralsWithAddresses(new String[]{macAddress});
|
||||||
|
stopMachineState();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Timber.d("No location permission, connecting without LE scan");
|
Timber.d("No location permission, connecting without LE scan");
|
||||||
|
Reference in New Issue
Block a user