revert wrong autosens fix

This commit is contained in:
Milos Kozak 2018-07-11 18:23:58 +03:00
parent e4e0e64eef
commit d97e195ad1
3 changed files with 4 additions and 5 deletions

View file

@ -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;

View file

@ -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();
}

View file

@ -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();
}