DanaRS/I: improve recovering from disconnection

This commit is contained in:
Milos Kozak 2023-02-26 19:09:49 +01:00
parent 02a11ae902
commit 1fa2cb9370

View file

@ -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)