Don't consider pump initialized if updating basal profile on start failed.

This commit is contained in:
Johannes Mockenhaupt 2017-12-19 22:24:46 +01:00
parent 0e20a148e2
commit 715366b2b4
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -356,7 +356,10 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
Profile profile = MainApp.getConfigBuilder().getProfile(); Profile profile = MainApp.getConfigBuilder().getProfile();
if (!pump.basalProfile.equals(convertProfileToComboProfile(profile))) { if (!pump.basalProfile.equals(convertProfileToComboProfile(profile))) {
setNewBasalProfile(profile); PumpEnactResult setNewBasalProfileResult = setNewBasalProfile(profile);
if (!setNewBasalProfileResult.success) {
return;
}
} }
} }