Update local basal profile after setting it on pump.
This commit is contained in:
parent
1a8c0fcf52
commit
61d1028011
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
CommandResult readResult = runCommand(MainApp.sResources.getString(R.string.combo_activity_setting_basal_profile), 0,
|
||||||
ruffyScripter::readBasalProfile);
|
ruffyScripter::readBasalProfile);
|
||||||
|
|
||||||
|
pump.basalProfile = readResult.basalProfile;
|
||||||
|
|
||||||
return readResult.success && readResult.basalProfile.equals(requestedBasalProfile)
|
return readResult.success && readResult.basalProfile.equals(requestedBasalProfile)
|
||||||
? PumpInterface.SUCCESS : PumpInterface.FAILED;
|
? PumpInterface.SUCCESS : PumpInterface.FAILED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue