Merge pull request #979 from bubbledevteam/dev

fix Orange connecting  bug
This commit is contained in:
Milos Kozak 2021-11-23 10:03:01 +01:00 committed by GitHub
commit d4f2fc2571
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,10 +85,11 @@ public class RileyLinkBLE {
aapsLogger.debug(LTag.PUMPBTCOMM, "Response Count is " + ByteUtil.shortHexString(characteristic.getValue())); aapsLogger.debug(LTag.PUMPBTCOMM, "Response Count is " + ByteUtil.shortHexString(characteristic.getValue()));
} }
} }
if (radioResponseCountNotified != null) { if (characteristic.getUuid().equals(UUID.fromString(GattAttributes.CHARA_RADIO_RESPONSE_COUNT))) {
radioResponseCountNotified.run(); if (radioResponseCountNotified != null) {
radioResponseCountNotified.run();
}
} }
orangeLink.onCharacteristicChanged(characteristic); orangeLink.onCharacteristicChanged(characteristic);
} }