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

compare correctly the first hex value in the incoming data

This commit is contained in:
OliE
2018-09-19 09:45:43 +02:00
parent ef1632dc7f
commit 8b9eb6effb

View File

@@ -99,7 +99,7 @@ public class BluetoothOneByone extends BluetoothCommunication {
} }
// if data is valid data // if data is valid data
if (data.length == 20 && data[0] == 0xcf) { if (data.length == 20 && data[0] == (byte)0xcf) {
parseBytes(data); parseBytes(data);
} }
} }