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