fix rendering TT in mmol

This commit is contained in:
Milos Kozak 2018-03-23 23:55:38 +01:00
parent 22f50198fc
commit 3d710dcf46

View file

@ -245,6 +245,7 @@ public class GraphData {
value = (profile.getTargetLow(time) + profile.getTargetHigh(time)) / 2;
} else {
value = tt.target();
value = Profile.fromMgdlToUnits(value, profile.getUnits());
}
if (lastTarget > 0 && lastTarget != value) {
targetsSeriesArray.add(new DataPoint(time, lastTarget));