Merge pull request #780 from jotomo/combo-unbreak-basal-rate-conversion

Combo: unbreak basal rate conversion.
This commit is contained in:
Milos Kozak 2018-03-19 16:38:14 +01:00 committed by GitHub
commit 3f6a612d42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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