1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-22 16:23:09 +02:00

correct data length

This commit is contained in:
OliE
2017-10-03 09:51:09 +02:00
parent 4fb71ef137
commit 31c2e1ba70

View File

@@ -77,7 +77,7 @@ public class BluetoothExcelvanCF369BLE extends BluetoothCommunication {
unit = 0x01; // kg
}
byte xor_checksum = (byte)((0x01) ^ sex ^ (0x01) ^ height ^ age ^ unit);
byte xor_checksum = (byte)((byte)(0x01) ^ sex ^ (byte)(0x01) ^ height ^ age ^ unit);
byte[] configBytes = {(byte)(0xfe), (byte)(0x01), sex, (byte)(0x01), height, age, unit, xor_checksum};