From ad1158061d4b591d343d753fbbaee45e073be17e Mon Sep 17 00:00:00 2001 From: Bart Sopers Date: Sat, 22 Aug 2020 14:47:56 +0200 Subject: [PATCH] Add logging --- .../pump/omnipod/comm/OmnipodCommunicationManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/comm/OmnipodCommunicationManager.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/comm/OmnipodCommunicationManager.java index ae8538cd3e..e0232e7d87 100644 --- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/comm/OmnipodCommunicationManager.java +++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/comm/OmnipodCommunicationManager.java @@ -263,6 +263,9 @@ public class OmnipodCommunicationManager extends RileyLinkCommunicationManager { } } catch (NotEnoughDataException ex) { // Message is (probably) not complete yet + + aapsLogger.debug(LTag.PUMPBTCOMM, "Caught NotEnoughDataException. Sending ACK for CON"); + OmnipodPacket ackForCon = createAckPacket(podStateManager, packetAddress, ackAddressOverride); try { @@ -351,6 +354,7 @@ public class OmnipodCommunicationManager extends RileyLinkCommunicationManager { } catch (Exception ex) { throw new CommunicationException(CommunicationException.Type.UNEXPECTED_EXCEPTION, ex); } + if (response == null) { aapsLogger.debug(LTag.PUMPBTCOMM, "exchangePackets response is null"); continue;