1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-24 01:03:20 +02:00

MGB: allow second byte to be 0x03

As reported in #351
This commit is contained in:
Erik Johansson
2018-11-17 14:52:56 +01:00
parent 8aa716d8d3
commit 97dbbf67d0

View File

@@ -153,7 +153,7 @@ public class BluetoothMGB extends BluetoothCommunication {
int hdr_2 = popInt();
int hdr_3 = popInt();
if (hdr_1 == 0xAC && hdr_2 == 0x02 && hdr_3 == 0xFF) {
if (hdr_1 == 0xAC && (hdr_2 == 0x02 || hdr_2 == 0x03) && hdr_3 == 0xFF) {
measurement = new ScaleMeasurement();
popInt(); //unknown =00