Merge pull request #1977 from thecubic/omnieros-noactivate

[omnipod-eros] moot basal set before pod basal activation
This commit is contained in:
Milos Kozak 2022-08-04 10:02:52 +02:00 committed by GitHub
commit c8ab464b6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -291,6 +291,15 @@ public class AapsOmnipodErosManager {
return new PumpEnactResult(injector).success(false).enacted(false).comment(note);
}
// #1963 return synthetic success if pre-activation
// to allow profile switch prior to pod activation
// otherwise a catch-22
if (!podStateManager.getActivationProgress().isCompleted()) {
// TODO: i18n string
return new PumpEnactResult(injector).success(true).enacted(false).comment("pre" +
"-activation basal change moot");
}
PodHistoryEntryType historyEntryType = podStateManager.isSuspended() ? PodHistoryEntryType.RESUME_DELIVERY : PodHistoryEntryType.SET_BASAL_SCHEDULE;
try {