From 8937fbe57472bb0c6bc6a43b0972e3844a5542e7 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Wed, 26 Jul 2017 22:35:13 +0200 Subject: [PATCH] use pumpdescription.maxTempPercent to cutoff temps --- .../nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 d14abd580f..eb2ed05798 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 @@ -487,8 +487,7 @@ public class ComboPlugin implements PluginBase, PumpInterface { percent = rounded; } - //FIXME maybe needs a flag in pump config? - percent = percent > 500 ? 500 : percent; + percent = percent > pumpDescription.maxTempPercent ? pumpDescription.maxTempPercent : percent; CommandResult commandResult = runCommand(new SetTbrCommand(percent, durationInMinutes)); if (commandResult.enacted) {