Combo: unbreak basal rate conversion.

This aligns the combo with the changes from the nodefaultprofile
merge.
This commit is contained in:
Johannes Mockenhaupt 2018-03-19 15:59:23 +01:00
parent 0b95d9ad0b
commit 86b25174e2
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -347,7 +347,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
private BasalProfile convertProfileToComboProfile(Profile profile) {
BasalProfile basalProfile = new BasalProfile();
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:
* 0.01 - if below 1U/h