Don't consider pump initialized if updating basal profile on start failed.
This commit is contained in:
parent
0e20a148e2
commit
715366b2b4
|
@ -356,7 +356,10 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
|||
|
||||
Profile profile = MainApp.getConfigBuilder().getProfile();
|
||||
if (!pump.basalProfile.equals(convertProfileToComboProfile(profile))) {
|
||||
setNewBasalProfile(profile);
|
||||
PumpEnactResult setNewBasalProfileResult = setNewBasalProfile(profile);
|
||||
if (!setNewBasalProfileResult.success) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue