From 86b25174e2a4b0b43431e575669e1e3adecda2b4 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Mon, 19 Mar 2018 15:59:23 +0100 Subject: [PATCH] Combo: unbreak basal rate conversion. This aligns the combo with the changes from the nodefaultprofile merge. --- .../nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java index bf7b48dc41..afefbe80da 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java @@ -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