From d97e195ad110b0fc120e179fbd97ffe05626b0a4 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Wed, 11 Jul 2018 18:23:58 +0300 Subject: [PATCH] revert wrong autosens fix --- app/src/main/java/info/nightscout/androidaps/Config.java | 2 +- .../plugins/Sensitivity/SensitivityOref0Plugin.java | 2 +- .../plugins/Sensitivity/SensitivityOref1Plugin.java | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/Config.java b/app/src/main/java/info/nightscout/androidaps/Config.java index a12e0a9ea0..27ce9faee6 100644 --- a/app/src/main/java/info/nightscout/androidaps/Config.java +++ b/app/src/main/java/info/nightscout/androidaps/Config.java @@ -33,7 +33,7 @@ public class Config { public static final boolean logNSUpload = true; public static final boolean logPumpActions = true; public static final boolean logCongigBuilderActions = true; - public static final boolean logAutosensData = false; + public static final boolean logAutosensData = true; public static final boolean logEvents = false; public static final boolean logProfile = false; diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Sensitivity/SensitivityOref0Plugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/Sensitivity/SensitivityOref0Plugin.java index cfe5dd28f6..a97297f551 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Sensitivity/SensitivityOref0Plugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Sensitivity/SensitivityOref0Plugin.java @@ -72,7 +72,7 @@ public class SensitivityOref0Plugin extends AbstractSensitivityPlugin { AutosensData current = IobCobCalculatorPlugin.getPlugin().getAutosensData(toTime); // this is running inside lock already if (current == null) { - log.debug("No current autosens data available"); + log.debug("No autosens data available"); return new AutosensResult(); } diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Sensitivity/SensitivityOref1Plugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/Sensitivity/SensitivityOref1Plugin.java index ef220a6730..ae01c2158d 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Sensitivity/SensitivityOref1Plugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Sensitivity/SensitivityOref1Plugin.java @@ -70,10 +70,9 @@ public class SensitivityOref1Plugin extends AbstractSensitivityPlugin { } // the current - AutosensData current = IobCobCalculatorPlugin.getPlugin() - .getLastAutosensDataSynchronized("SensitivityOref1Plugin"); // this is running inside lock already + AutosensData current = IobCobCalculatorPlugin.getPlugin().getAutosensData(toTime); // this is running inside lock already if (current == null) { - log.debug("No current autosens data available"); + log.debug("No autosens data available"); return new AutosensResult(); }