Do not misinterpret a fake-extended as 0% temp.

This commit is contained in:
AdrianLxM 2017-10-04 16:00:48 +02:00 committed by GitHub
parent 96c1a18a66
commit 9e2968f21a

View file

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