From eab9d8dcd7f4bc8ff50fbc3575e146be8b8ce57a Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sat, 15 Jul 2017 13:44:14 +0200 Subject: [PATCH] Fix reducing duration of OpenAPS TBRs --- .../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 f08304f532..8920ef196c 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 @@ -331,7 +331,7 @@ public class ComboPlugin implements PluginBase, PumpInterface { pumpEnactResult.comment = "TBR change too small, skipping"; return pumpEnactResult; } - int stepSize = pumpDescription.tempPercentStep; + int stepSize = pumpDescription.tempDurationStep; if (durationInMinutes > stepSize) { log.debug("Reducing requested duration of " + durationInMinutes + "m to minimal duration supported by the pump: " + stepSize + "m"); durationInMinutes = stepSize;