Fix Unit convertion mmol->mgdl and mgdl->mmol for csv file
This commit is contained in:
parent
6095a29595
commit
90e2c8f65f
1 changed files with 2 additions and 2 deletions
|
@ -205,10 +205,10 @@ class UserEntryPresentationHelper @Inject constructor(
|
||||||
is ValueWithUnit.Timestamp -> timestamp = dateUtil.dateAndTimeAndSecondsString(valueWithUnit.value)
|
is ValueWithUnit.Timestamp -> timestamp = dateUtil.dateAndTimeAndSecondsString(valueWithUnit.value)
|
||||||
|
|
||||||
is ValueWithUnit.Mgdl ->
|
is ValueWithUnit.Mgdl ->
|
||||||
bg = Profile.toUnitsString(valueWithUnit.value, valueWithUnit.value * Constants.MMOLL_TO_MGDL, profileFunction.getUnits())
|
bg = Profile.toUnitsString(valueWithUnit.value, valueWithUnit.value * Constants.MGDL_TO_MMOLL, profileFunction.getUnits())
|
||||||
|
|
||||||
is ValueWithUnit.Mmoll ->
|
is ValueWithUnit.Mmoll ->
|
||||||
bg = Profile.toUnitsString(valueWithUnit.value, valueWithUnit.value * Constants.MMOLL_TO_MGDL, profileFunction.getUnits())
|
bg = Profile.toUnitsString(valueWithUnit.value * Constants.MMOLL_TO_MGDL, valueWithUnit.value , profileFunction.getUnits())
|
||||||
|
|
||||||
ValueWithUnit.UNKNOWN -> Unit
|
ValueWithUnit.UNKNOWN -> Unit
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue