1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-18 14:31:23 +02:00

Disconnect after setting initial weight for new user

To see if it helps the problem reported by @Alejandro131 in #335.
This commit is contained in:
Erik Johansson
2018-10-09 21:30:23 +02:00
parent 960c7e8f30
commit bbbb91ecdd

View File

@@ -481,6 +481,12 @@ public class BluetoothBeurerSanitas extends BluetoothCommunication {
(byte) (data[2] & 0xFF), (byte) (data[3] & 0xFF),
});
if (currentScaleUserId == 0) {
Timber.i("Initial weight set; disconnecting...");
setBtMachineState(BT_MACHINE_STATE.BT_CLEANUP_STATE);
return;
}
return;
}