Tidepool: fix calibraton entry

This commit is contained in:
Milos Kozak 2023-03-28 17:12:28 +02:00
parent de7fde3840
commit b244d174fa

View file

@ -21,7 +21,7 @@ class BloodGlucoseElement(therapyEvent: TherapyEvent, dateUtil: DateUtil)
var value: Int = 0
init {
type = "cbg"
type = "smbg"
subType = "manual" // TODO
value = if (therapyEvent.glucose != null)
Profile.toMgdl(therapyEvent.glucose!!, therapyEvent.glucoseUnit.toMainUnit()).toInt()