mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-26 09:44:31 +02:00
compare correctly the first hex value in the incoming data
This commit is contained in:
@@ -99,7 +99,7 @@ public class BluetoothOneByone extends BluetoothCommunication {
|
||||
}
|
||||
|
||||
// if data is valid data
|
||||
if (data.length == 20 && data[0] == 0xcf) {
|
||||
if (data.length == 20 && data[0] == (byte)0xcf) {
|
||||
parseBytes(data);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user