Calculate activityContrib for TempBasal

This commit is contained in:
AdrianLxM 2016-11-07 15:17:16 +01:00 committed by GitHub
parent 82443bc8ab
commit 8bdc86f359

View file

@ -97,6 +97,7 @@ public class TempBasal {
Iob aIOB = tempBolusPart.iobCalc(time, profile.getDia());
result.basaliob += aIOB.iobContrib;
result.activity += aIOB.activityContrib;
Double dia_ago = time.getTime() - profile.getDia() * 60 * 60 * 1000;
if (date > dia_ago && date <= time.getTime()) {
result.netbasalinsulin += tempBolusPart.insulin;