getTempBasalFromHistory -> getRealTempBasalFromHistory

This commit is contained in:
AdrianLxM 2017-10-04 16:51:54 +02:00 committed by GitHub
parent 9e2968f21a
commit 3d2647321b

View file

@ -506,8 +506,8 @@ 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 && !(runningTB.isAbsolute|runningTB.isFakeExtended)) {
TemporaryBasal runningTB = MainApp.getConfigBuilder().getRealTempBasalFromHistory(System.currentTimeMillis());
if (runningTB != null && runningTB.percentRate == percent) {
result.enacted = false;
result.success = true;
result.isTempCancel = false;