From e68d2d080d0abff1877299c1563578b020f4952d Mon Sep 17 00:00:00 2001 From: Philoul Date: Mon, 18 Oct 2021 19:59:24 +0200 Subject: [PATCH] Fix #746 --- .../androidaps/plugins/general/wear/ActionStringHandler.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/wear/ActionStringHandler.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/wear/ActionStringHandler.kt index 7708c382b8..72bcab6b7b 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/wear/ActionStringHandler.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/wear/ActionStringHandler.kt @@ -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