Combo: unbreak basal rate conversion.
This aligns the combo with the changes from the nodefaultprofile merge.
This commit is contained in:
parent
0b95d9ad0b
commit
86b25174e2
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
||||||
private BasalProfile convertProfileToComboProfile(Profile profile) {
|
private BasalProfile convertProfileToComboProfile(Profile profile) {
|
||||||
BasalProfile basalProfile = new BasalProfile();
|
BasalProfile basalProfile = new BasalProfile();
|
||||||
for (int i = 0; i < 24; i++) {
|
for (int i = 0; i < 24; i++) {
|
||||||
double rate = profile.getBasal(Integer.valueOf(i * 60 * 60));
|
double rate = profile.getBasalTimeFromMidnight(i * 60 * 60);
|
||||||
|
|
||||||
/*The Combo pump does hava a different granularity for basal rate:
|
/*The Combo pump does hava a different granularity for basal rate:
|
||||||
* 0.01 - if below 1U/h
|
* 0.01 - if below 1U/h
|
||||||
|
|
Loading…
Reference in a new issue