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:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user