Small Omnipod pairing bug fix

This commit is contained in:
Bart Sopers 2020-11-10 20:10:52 +01:00
parent a0da0fe0ea
commit 9eda130df2

View file

@ -116,7 +116,7 @@ public abstract class PodStateManager {
} }
public final void setInitializationParameters(int lot, int tid, FirmwareVersion piVersion, FirmwareVersion pmVersion, DateTimeZone timeZone, PodProgressStatus podProgressStatus) { public final void setInitializationParameters(int lot, int tid, FirmwareVersion piVersion, FirmwareVersion pmVersion, DateTimeZone timeZone, PodProgressStatus podProgressStatus) {
if (isPodInitialized() && getPodProgressStatus().isAfter(PodProgressStatus.REMINDER_INITIALIZED)) { if (isPodInitialized() && getActivationProgress().isAtLeast(ActivationProgress.PAIRING_COMPLETED)) {
throw new IllegalStateException("Cannot set pairing parameters: pairing parameters have already been set"); throw new IllegalStateException("Cannot set pairing parameters: pairing parameters have already been set");
} }
if (piVersion == null) { if (piVersion == null) {