From 1d6a48d01dcd16a5767940f9e04e3003af60e713 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 3 Aug 2023 15:34:52 +0200 Subject: [PATCH] DanaR: reset status when CHECK_VALUE not received --- .../java/info/nightscout/androidaps/danar/SerialIOThread.java | 1 + 1 file changed, 1 insertion(+) diff --git a/pump/danar/src/main/java/info/nightscout/androidaps/danar/SerialIOThread.java b/pump/danar/src/main/java/info/nightscout/androidaps/danar/SerialIOThread.java index c4701bcbc4..f1f2f9e671 100644 --- a/pump/danar/src/main/java/info/nightscout/androidaps/danar/SerialIOThread.java +++ b/pump/danar/src/main/java/info/nightscout/androidaps/danar/SerialIOThread.java @@ -171,6 +171,7 @@ public class SerialIOThread extends Thread { aapsLogger.error(LTag.PUMPBTCOMM, "Reply not received " + message.getMessageName()); if (message.getCommand() == 0xF0F1) { danaPump.setNewPump(false); + danaPump.reset(); aapsLogger.debug(LTag.PUMPBTCOMM, "Old firmware detected"); } }