Use correct units for low/high from TT.
This commit is contained in:
parent
627cb8e9b2
commit
07b04b8abf
1 changed files with 2 additions and 2 deletions
|
@ -67,8 +67,8 @@ public class BolusWizard {
|
||||||
targetBGLow = specificProfile.getTargetLow();
|
targetBGLow = specificProfile.getTargetLow();
|
||||||
targetBGHigh = specificProfile.getTargetHigh();
|
targetBGHigh = specificProfile.getTargetHigh();
|
||||||
if (tempTarget != null) {
|
if (tempTarget != null) {
|
||||||
targetBGLow = tempTarget.low;
|
targetBGLow = Profile.fromMgdlToUnits(tempTarget.low, specificProfile.getUnits());
|
||||||
targetBGHigh = tempTarget.high;
|
targetBGHigh = Profile.fromMgdlToUnits(tempTarget.high, specificProfile.getUnits());
|
||||||
}
|
}
|
||||||
if (bg <= targetBGLow) {
|
if (bg <= targetBGLow) {
|
||||||
bgDiff = bg - targetBGLow;
|
bgDiff = bg - targetBGLow;
|
||||||
|
|
Loading…
Reference in a new issue