From 391a471b2729d6c43c3d27632d5847c09c0544b1 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 7 Apr 2022 18:34:31 +0200 Subject: [PATCH] cleanup --- .../general/wear/wearintegration/WatchUpdaterService.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/wear/wearintegration/WatchUpdaterService.java b/app/src/main/java/info/nightscout/androidaps/plugins/general/wear/wearintegration/WatchUpdaterService.java index 59db28a647..85d08c142c 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/wear/wearintegration/WatchUpdaterService.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/wear/wearintegration/WatchUpdaterService.java @@ -409,13 +409,12 @@ public class WatchUpdaterService extends WearableListenerService implements Goog double endBasalValue = beginBasalValue; TemporaryBasal tb1 = iobCobCalculator.getTempBasalIncludingConvertedExtended(runningTime); - TemporaryBasal tb2 = iobCobCalculator.getTempBasalIncludingConvertedExtended(runningTime); //TODO for Adrian ... what's the meaning? + TemporaryBasal tb2; double tb_before = beginBasalValue; double tb_amount = beginBasalValue; long tb_start = runningTime; if (tb1 != null) { - tb_before = beginBasalValue; Profile profileTB = profileFunction.getProfile(runningTime); if (profileTB != null) { tb_amount = TemporaryBasalExtensionKt.convertedToAbsolute(tb1, runningTime, profileTB); @@ -443,7 +442,7 @@ public class WatchUpdaterService extends WearableListenerService implements Goog tb2 = iobCobCalculator.getTempBasalIncludingConvertedExtended(runningTime); if (tb1 == null && tb2 == null) { - //no temp stays no temp + ; //no temp stays no temp } else if (tb1 != null && tb2 == null) { //temp is over -> push it