Update local basal profile after setting it on pump.

This commit is contained in:
Johannes Mockenhaupt 2017-11-22 22:42:47 +01:00
parent 1a8c0fcf52
commit 61d1028011
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -230,6 +230,8 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
CommandResult readResult = runCommand(MainApp.sResources.getString(R.string.combo_activity_setting_basal_profile), 0,
ruffyScripter::readBasalProfile);
pump.basalProfile = readResult.basalProfile;
return readResult.success && readResult.basalProfile.equals(requestedBasalProfile)
? PumpInterface.SUCCESS : PumpInterface.FAILED;
}