Merge pull request #439 from MilosKozak/fix-zerotemp-misinterpretation

Do not misinterpret a fake-extended as 0% temp.
This commit is contained in:
Milos Kozak 2017-10-04 18:12:59 +02:00 committed by GitHub
commit 4f53862808

View file

@ -506,7 +506,7 @@ public class DanaRPlugin implements PluginBase, PumpInterface, DanaRInterface, C
} }
if (percent > getPumpDescription().maxTempPercent) if (percent > getPumpDescription().maxTempPercent)
percent = getPumpDescription().maxTempPercent; percent = getPumpDescription().maxTempPercent;
TemporaryBasal runningTB = MainApp.getConfigBuilder().getTempBasalFromHistory(System.currentTimeMillis()); TemporaryBasal runningTB = MainApp.getConfigBuilder().getRealTempBasalFromHistory(System.currentTimeMillis());
if (runningTB != null && runningTB.percentRate == percent) { if (runningTB != null && runningTB.percentRate == percent) {
result.enacted = false; result.enacted = false;
result.success = true; result.success = true;