From 5b21844423a1bafce8670116b48130b015a4450d Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Mon, 5 Feb 2018 22:59:25 +0100 Subject: [PATCH] Did it again. --- .../nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java index ec0e86a3d9..a646d00af7 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java @@ -553,7 +553,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf long maxWaitTimeout = waitStartTime + 65 * 1000; int waitLoops = 0; while (previousBolus.timestamp == timeCheckResult.state.pumpTime - && maxWaitTimeout < System.currentTimeMillis()) { + && maxWaitTimeout > System.currentTimeMillis()) { if (cancelBolus) { return new PumpEnactResult().success(true).enacted(false); } @@ -619,7 +619,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf return new PumpEnactResult().success(false).enacted(true) .comment(MainApp.gs(R.string.combo_error_updating_treatment_record)); - // update `recentBoluses` so the bolus was just delivered won't be detected as an new + // update `recentBoluses` so the bolus was just delivered won't be detected as a new // bolus that has been delivered on the pump recentBoluses = postBolusStateResult.history.bolusHistory;