From 2308811a29e46474ed2a8d235210dbfd576563d4 Mon Sep 17 00:00:00 2001 From: oliexdev Date: Sun, 16 Jun 2019 08:00:12 +0200 Subject: [PATCH] don't immediate disconnect after receiving stoppped command, see issue #459 --- .../com/health/openscale/core/bluetooth/BluetoothMiScale2.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothMiScale2.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothMiScale2.java index 4676fbb7..e3e8a58c 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothMiScale2.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothMiScale2.java @@ -71,8 +71,6 @@ public class BluetoothMiScale2 extends BluetoothCommunication { byte[] userIdentifier = new byte[]{(byte)0x04, (byte)0xFF, (byte)0xFF, (byte) ((uniqueNumber & 0xFF00) >> 8), (byte) ((uniqueNumber & 0xFF) >> 0)}; writeBytes(BluetoothGattUuid.SERVICE_BODY_COMPOSITION, WEIGHT_MEASUREMENT_HISTORY_CHARACTERISTIC, userIdentifier); - disconnect(); - resumeMachineState(); }