mirror of
https://github.com/oliexdev/openScale.git
synced 2025-09-02 04:42:42 +02:00
Fix typo (data is in little endian format)
This commit is contained in:
@@ -137,7 +137,7 @@ public class BluetoothOneByone extends BluetoothCommunication {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void parseBytesOld(byte[] weightBytes) {
|
private void parseBytesOld(byte[] weightBytes) {
|
||||||
float weight = Converters.fromUnsignedInt16Be(weightBytes, 3) / 100.0f;
|
float weight = Converters.fromUnsignedInt16Le(weightBytes, 3) / 100.0f;
|
||||||
boolean done = (weightBytes[9] & 0xff) == 0;
|
boolean done = (weightBytes[9] & 0xff) == 0;
|
||||||
|
|
||||||
Timber.d("weight: %.2f%s", weight, done ? " (done)" : "");
|
Timber.d("weight: %.2f%s", weight, done ? " (done)" : "");
|
||||||
|
Reference in New Issue
Block a user