mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-18 22:41:44 +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:
@@ -481,6 +481,12 @@ public class BluetoothBeurerSanitas extends BluetoothCommunication {
|
|||||||
(byte) (data[2] & 0xFF), (byte) (data[3] & 0xFF),
|
(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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user