Fix displaying adjusted target
This commit is contained in:
parent
bfacfd9255
commit
2e8dd257c6
1 changed files with 1 additions and 1 deletions
|
@ -966,7 +966,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
||||||
// If the target is not the same as set in the profile then oref has overridden it
|
// If the target is not the same as set in the profile then oref has overridden it
|
||||||
val targetUsed =
|
val targetUsed =
|
||||||
if (config.APS) loop.lastRun?.constraintsProcessed?.targetBG ?: 0.0
|
if (config.APS) loop.lastRun?.constraintsProcessed?.targetBG ?: 0.0
|
||||||
else if (config.NSCLIENT) JsonHelper.safeGetDouble(processedDeviceStatusData.getAPSResult().json, "targetBg")
|
else if (config.NSCLIENT) JsonHelper.safeGetDouble(processedDeviceStatusData.getAPSResult().json, "targetBG")
|
||||||
else 0.0
|
else 0.0
|
||||||
|
|
||||||
if (targetUsed != 0.0 && abs(profile.getTargetMgdl() - targetUsed) > 0.01) {
|
if (targetUsed != 0.0 && abs(profile.getTargetMgdl() - targetUsed) > 0.01) {
|
||||||
|
|
Loading…
Reference in a new issue