mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-24 09:13:04 +02:00
MGB: require that measurement != null for second part
This commit is contained in:
@@ -178,7 +178,8 @@ public class BluetoothMGB extends BluetoothCommunication {
|
||||
popInt(); //unknown =00
|
||||
popInt(); //unknown =00
|
||||
|
||||
} else if (hdr_1 == 0x01 && hdr_2 == 0x00) {
|
||||
}
|
||||
else if (measurement != null && hdr_1 == 0x01 && hdr_2 == 0x00) {
|
||||
measurement.setMuscle(popFloat());
|
||||
|
||||
popFloat(); //BMR
|
||||
|
Reference in New Issue
Block a user