From 051a48272521adf96b3eb12d3521d1e935e22284 Mon Sep 17 00:00:00 2001 From: bubble_devteam Date: Tue, 23 Nov 2021 16:42:24 +0800 Subject: [PATCH] fix Orange connecting bug --- .../plugins/pump/common/hw/rileylink/ble/RileyLinkBLE.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rileylink/src/main/java/info/nightscout/androidaps/plugins/pump/common/hw/rileylink/ble/RileyLinkBLE.java b/rileylink/src/main/java/info/nightscout/androidaps/plugins/pump/common/hw/rileylink/ble/RileyLinkBLE.java index a8cfa31496..1e41ffebd4 100644 --- a/rileylink/src/main/java/info/nightscout/androidaps/plugins/pump/common/hw/rileylink/ble/RileyLinkBLE.java +++ b/rileylink/src/main/java/info/nightscout/androidaps/plugins/pump/common/hw/rileylink/ble/RileyLinkBLE.java @@ -85,10 +85,11 @@ public class RileyLinkBLE { aapsLogger.debug(LTag.PUMPBTCOMM, "Response Count is " + ByteUtil.shortHexString(characteristic.getValue())); } } - if (radioResponseCountNotified != null) { - radioResponseCountNotified.run(); + if (characteristic.getUuid().equals(UUID.fromString(GattAttributes.CHARA_RADIO_RESPONSE_COUNT))) { + if (radioResponseCountNotified != null) { + radioResponseCountNotified.run(); + } } - orangeLink.onCharacteristicChanged(characteristic); }