Merge pull request #755 from Philoul/Fix/TT_From_Watch_mmol

Fix TT From Watch (mmol) double convertion
This commit is contained in:
Milos Kozak 2021-10-19 00:02:37 +02:00 committed by GitHub
commit c2f7be77ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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