From 31c2e1ba70d819082406d0b83a19d067ec11ae89 Mon Sep 17 00:00:00 2001 From: OliE Date: Tue, 3 Oct 2017 09:51:09 +0200 Subject: [PATCH] correct data length --- .../openscale/core/bluetooth/BluetoothExcelvanCF369BLE.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothExcelvanCF369BLE.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothExcelvanCF369BLE.java index d338bcc9..11e88b95 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothExcelvanCF369BLE.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothExcelvanCF369BLE.java @@ -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};