From 67fe4024471345d2d5aa6679d2241c95bbe0a51e Mon Sep 17 00:00:00 2001 From: Tebbe Ubben Date: Sun, 31 Mar 2019 19:58:59 +0200 Subject: [PATCH] Update basal profile precision handling in Insight driver v2 --- .../androidaps/plugins/pump/insight/LocalInsightPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/LocalInsightPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/LocalInsightPlugin.java index 0ad1f0deb0..14cb6137c5 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/LocalInsightPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/LocalInsightPlugin.java @@ -476,7 +476,7 @@ public class LocalInsightPlugin extends PluginBase implements PumpInterface, Con nextValue = profile.getBasalValues()[i + 1]; if (profileBlock.getDuration() * 60 != (nextValue != null ? nextValue.timeAsSeconds : 24 * 60 * 60) - basalValue.timeAsSeconds) return false; - if (Math.abs(profileBlock.getBasalAmount() - basalValue.value) >= (profileBlock.getBasalAmount() >= 5 ? 0.1 : 0.01)) + if (Math.abs(profileBlock.getBasalAmount() - basalValue.value) >= (basalValue.value > 5 ? 0.05 : 0.005)) return false; } return true;