apply only for non faking EB

This commit is contained in:
Milos Kozak 2020-01-14 09:09:22 +01:00
parent 94dd843825
commit dd37ec9bb9

View file

@ -74,8 +74,8 @@ public class SafetyPlugin extends PluginBase implements ConstraintsInterface {
}
value.set(false, MainApp.gs(R.string.closed_loop_disabled_on_dev_branch), this);
}
if (TreatmentsPlugin.getPlugin().isInHistoryExtendedBoluslInProgress()) {
PumpInterface pump = ConfigBuilderPlugin.getPlugin().getActivePump();
if (pump != null && !pump.isFakingTempsByExtendedBoluses() && TreatmentsPlugin.getPlugin().isInHistoryExtendedBoluslInProgress()) {
value.set(false, MainApp.gs(R.string.closed_loop_disabled_with_eb), this);
}
return value;