1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-15 13:14:22 +02:00

weights are always send in kg by the Yunmai SE/mini scale

This commit is contained in:
OliE
2018-06-06 11:19:33 +02:00
parent 113b05080c
commit 7c2573f813

View File

@@ -127,7 +127,7 @@ public class BluetoothYunmaiSE_Mini extends BluetoothCommunication {
scaleBtData.setDateTime(new Date(timestamp));
float weight = Converters.fromUnsignedInt16Be(weightBytes, 13) / 100.0f;
scaleBtData.setWeight(Converters.toKilogram(weight, selectedUser.getScaleUnit()));
scaleBtData.setWeight(weight);
if (isMini) {
float fat = Converters.fromUnsignedInt16Be(weightBytes, 17) / 100.0f;