fix Orange connecting bug

This commit is contained in:
bubble_devteam 2021-11-23 16:42:24 +08:00
parent 95deaf8b98
commit 051a482725

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);
} }