Fix wrong condition for determining whether or not Pod was suspended before setting basal schedule

This commit is contained in:
Bart Sopers 2020-08-28 01:29:25 +02:00
parent aa7e57512a
commit 0dac395b1a

View file

@ -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);
} }