Merge pull request #755 from Philoul/Fix/TT_From_Watch_mmol
Fix TT From Watch (mmol) double convertion
This commit is contained in:
commit
c2f7be77ad
|
@ -507,11 +507,6 @@ class ActionStringHandler @Inject constructor(
|
|||
val duration = SafeParse.stringToInt(act[2])
|
||||
var low = SafeParse.stringToDouble(act[3])
|
||||
var high = SafeParse.stringToDouble(act[4])
|
||||
val isMGDL = java.lang.Boolean.parseBoolean(act[1])
|
||||
if (!isMGDL) {
|
||||
low *= Constants.MMOLL_TO_MGDL
|
||||
high *= Constants.MMOLL_TO_MGDL
|
||||
}
|
||||
generateTempTarget(duration, low, high)
|
||||
} else if ("wizard2" == act[0]) {
|
||||
if (lastBolusWizard != null) { //use last calculation as confirmed string matches
|
||||
|
|
Loading…
Reference in a new issue