From 3ed11f900297f94873ed2bc6c60ae5415586769d Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Wed, 20 Jun 2018 20:49:16 +0200 Subject: [PATCH] oref1 autosens: count with extra deviations --- .../plugins/SensitivityOref1/SensitivityOref1Plugin.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/SensitivityOref1/SensitivityOref1Plugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/SensitivityOref1/SensitivityOref1Plugin.java index 24579bb0ae..ffafc2f316 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/SensitivityOref1/SensitivityOref1Plugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/SensitivityOref1/SensitivityOref1Plugin.java @@ -90,6 +90,9 @@ public class SensitivityOref1Plugin extends PluginBase implements SensitivityInt } deviationsArray.add(autosensData.validDeviation ? autosensData.deviation : 0d); + + for (int i = 0; i < autosensData.extraDeviation.size(); i++) + deviationsArray.add(autosensData.extraDeviation.get(i)); if (deviationsArray.size() > 96) deviationsArray.remove(0);