From 39d41ce0ec2199d56936e41a81f02c54f409761e Mon Sep 17 00:00:00 2001 From: oliexdev Date: Sun, 24 Feb 2019 08:17:12 +0100 Subject: [PATCH] stopped machine state until Bluetooth services are discovered --- .../com/health/openscale/core/bluetooth/BluetoothDebug.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothDebug.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothDebug.java index 0210f083..8bed29ed 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothDebug.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothDebug.java @@ -161,6 +161,7 @@ public class BluetoothDebug extends BluetoothCommunication { @Override public void onBluetoothDiscovery(RxBleDeviceServices rxBleDeviceServices) { this.rxBleDeviceServices = rxBleDeviceServices; + resumeMachineState(); } @Override @@ -169,6 +170,7 @@ public class BluetoothDebug extends BluetoothCommunication { { case 0: discoverBluetoothServices(); + stopMachineState(); break; case 1: int offset = stepNr;