From c3ef4af70055df885158ba4ca0ebc6cce9e86a20 Mon Sep 17 00:00:00 2001 From: Philoul Date: Mon, 25 Oct 2021 10:09:32 +0200 Subject: [PATCH] Fix delta --- .../main/java/info/nightscout/androidaps/utils/BolusTimer.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/utils/BolusTimer.kt b/app/src/main/java/info/nightscout/androidaps/utils/BolusTimer.kt index aa248e1cb6..309ab0ca6a 100644 --- a/app/src/main/java/info/nightscout/androidaps/utils/BolusTimer.kt +++ b/app/src/main/java/info/nightscout/androidaps/utils/BolusTimer.kt @@ -33,7 +33,8 @@ class BolusTimer @Inject constructor( // Bg above 70 mgdl and delta positive mgdl list.add(TriggerBg(injector, 70.0, GlucoseUnit.MGDL, Comparator.Compare.IS_EQUAL_OR_GREATER)) - list.add(TriggerDelta(injector, InputDelta(resourceHelper, -15.0, -360.0, 360.0, 1.0, DecimalFormat("0"), InputDelta.DeltaType.DELTA), GlucoseUnit.MGDL, Comparator.Compare.IS_EQUAL_OR_GREATER)) + list.add(TriggerDelta(injector, InputDelta(resourceHelper, 0.0, -360.0, 360.0, 1.0, DecimalFormat("0"), InputDelta.DeltaType.DELTA), GlucoseUnit.MGDL, Comparator.Compare + .IS_GREATER)) } actions.add(ActionAlarm(injector, resourceHelper.gs(R.string.time_to_bolus))) }