Don't emit acknowledgement beeps when cancelling delivery before deactivating pod
This commit is contained in:
parent
057927d24e
commit
e350856161
|
@ -282,13 +282,14 @@ public class OmnipodManager {
|
|||
resumeDelivery(acknowledgementBeeps);
|
||||
}
|
||||
|
||||
public synchronized void deactivatePod(boolean acknowledgementBeep) {
|
||||
public synchronized void deactivatePod() {
|
||||
if (podState == null) {
|
||||
throw new IllegalSetupProgressException(SetupProgress.ADDRESS_ASSIGNED, null);
|
||||
}
|
||||
|
||||
try {
|
||||
executeAndVerify(() -> communicationService.executeAction(new DeactivatePodAction(podState, acknowledgementBeep)));
|
||||
// Never send acknowledgement beeps here. Matches the PDM's behavior
|
||||
executeAndVerify(() -> communicationService.executeAction(new DeactivatePodAction(podState, false)));
|
||||
} catch (PodFaultException ex) {
|
||||
if (isLoggingEnabled()) {
|
||||
LOG.info("Ignoring PodFaultException in deactivatePod", ex);
|
||||
|
|
|
@ -182,7 +182,7 @@ public class AapsOmnipodManager implements OmnipodCommunicationManagerInterface
|
|||
@Override
|
||||
public PumpEnactResult deactivatePod(PodInitReceiver podInitReceiver) {
|
||||
try {
|
||||
delegate.deactivatePod(true);
|
||||
delegate.deactivatePod();
|
||||
} catch (Exception ex) {
|
||||
String comment = handleAndTranslateException(ex);
|
||||
podInitReceiver.returnInitTaskStatus(PodInitActionType.DeactivatePodWizardStep, false, comment);
|
||||
|
|
Loading…
Reference in a new issue