Fix wrong condition for determining whether or not Pod was suspended before setting basal schedule
This commit is contained in:
parent
aa7e57512a
commit
0dac395b1a
1 changed files with 2 additions and 2 deletions
|
@ -204,8 +204,8 @@ public class OmnipodManager {
|
||||||
logStartingCommandExecution("setBasalSchedule [basalSchedule=" + schedule + ", acknowledgementBeep=" + acknowledgementBeep + "]");
|
logStartingCommandExecution("setBasalSchedule [basalSchedule=" + schedule + ", acknowledgementBeep=" + acknowledgementBeep + "]");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
boolean wasSuspended = !podStateManager.isSuspended();
|
boolean wasSuspended = podStateManager.isSuspended();
|
||||||
if (wasSuspended) {
|
if (!wasSuspended) {
|
||||||
suspendDelivery(acknowledgementBeep);
|
suspendDelivery(acknowledgementBeep);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue