Treat Pod Fault responses as successful communication
This commit is contained in:
parent
68ff228426
commit
9c29a0643e
|
@ -158,7 +158,8 @@ public class OmnipodRileyLinkCommunicationManager extends RileyLinkCommunication
|
|||
} else if (responseMessageBlock.getType() == MessageBlockType.POD_INFO_RESPONSE && ((PodInfoResponse) responseMessageBlock).getSubType() == PodInfoType.FAULT_EVENT) {
|
||||
PodInfoFaultEvent faultEvent = (PodInfoFaultEvent) ((PodInfoResponse) responseMessageBlock).getPodInfo();
|
||||
podStateManager.setFaultEvent(faultEvent);
|
||||
podStateManager.setLastFailedCommunication(DateTime.now());
|
||||
// Treat as successful communication as the user will get notified and can work with this response
|
||||
podStateManager.setLastSuccessfulCommunication(DateTime.now());
|
||||
throw new PodFaultException(faultEvent);
|
||||
} else {
|
||||
podStateManager.setLastFailedCommunication(DateTime.now());
|
||||
|
|
Loading…
Reference in a new issue