Add logging
This commit is contained in:
parent
dc6c19fdeb
commit
ad1158061d
1 changed files with 4 additions and 0 deletions
|
@ -263,6 +263,9 @@ public class OmnipodCommunicationManager extends RileyLinkCommunicationManager {
|
||||||
}
|
}
|
||||||
} catch (NotEnoughDataException ex) {
|
} catch (NotEnoughDataException ex) {
|
||||||
// Message is (probably) not complete yet
|
// Message is (probably) not complete yet
|
||||||
|
|
||||||
|
aapsLogger.debug(LTag.PUMPBTCOMM, "Caught NotEnoughDataException. Sending ACK for CON");
|
||||||
|
|
||||||
OmnipodPacket ackForCon = createAckPacket(podStateManager, packetAddress, ackAddressOverride);
|
OmnipodPacket ackForCon = createAckPacket(podStateManager, packetAddress, ackAddressOverride);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -351,6 +354,7 @@ public class OmnipodCommunicationManager extends RileyLinkCommunicationManager {
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
throw new CommunicationException(CommunicationException.Type.UNEXPECTED_EXCEPTION, ex);
|
throw new CommunicationException(CommunicationException.Type.UNEXPECTED_EXCEPTION, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (response == null) {
|
if (response == null) {
|
||||||
aapsLogger.debug(LTag.PUMPBTCOMM, "exchangePackets response is null");
|
aapsLogger.debug(LTag.PUMPBTCOMM, "exchangePackets response is null");
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue