fix rendering TT in mmol
This commit is contained in:
parent
22f50198fc
commit
3d710dcf46
|
@ -245,6 +245,7 @@ public class GraphData {
|
||||||
value = (profile.getTargetLow(time) + profile.getTargetHigh(time)) / 2;
|
value = (profile.getTargetLow(time) + profile.getTargetHigh(time)) / 2;
|
||||||
} else {
|
} else {
|
||||||
value = tt.target();
|
value = tt.target();
|
||||||
|
value = Profile.fromMgdlToUnits(value, profile.getUnits());
|
||||||
}
|
}
|
||||||
if (lastTarget > 0 && lastTarget != value) {
|
if (lastTarget > 0 && lastTarget != value) {
|
||||||
targetsSeriesArray.add(new DataPoint(time, lastTarget));
|
targetsSeriesArray.add(new DataPoint(time, lastTarget));
|
||||||
|
|
Loading…
Reference in a new issue