From 1fa2cb937095647843ef9febdc344b26fb6133a9 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 26 Feb 2023 19:09:49 +0100 Subject: [PATCH] DanaRS/I: improve recovering from disconnection --- .../main/java/info/nightscout/pump/danars/services/BLEComm.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/pump/danars/src/main/java/info/nightscout/pump/danars/services/BLEComm.kt b/pump/danars/src/main/java/info/nightscout/pump/danars/services/BLEComm.kt index 78ef823b75..2edba20d24 100644 --- a/pump/danars/src/main/java/info/nightscout/pump/danars/services/BLEComm.kt +++ b/pump/danars/src/main/java/info/nightscout/pump/danars/services/BLEComm.kt @@ -838,6 +838,7 @@ class BLEComm @Inject internal constructor( if (!message.isReceived) { aapsLogger.warn(LTag.PUMPBTCOMM, "Reply not received " + message.friendlyName) message.handleMessageNotReceived() + danaRSPlugin.disconnect("Reply not received") } // verify encryption for v3 & BLE if (message is DanaRSPacketEtcKeepConnection)