Add message to constraints if BG is not filtered.
This commit is contained in:
parent
79dec2e871
commit
34ee125666
1 changed files with 6 additions and 0 deletions
|
@ -192,6 +192,12 @@ public class OpenAPSSMBPlugin extends PluginBase implements APSInterface {
|
||||||
MainApp.getConstraintChecker().isSMBModeEnabled(smbAllowed);
|
MainApp.getConstraintChecker().isSMBModeEnabled(smbAllowed);
|
||||||
inputConstraints.copyReasons(smbAllowed);
|
inputConstraints.copyReasons(smbAllowed);
|
||||||
|
|
||||||
|
Constraint<Boolean> bgFiltered = new Constraint<>(bgReading.filtered);
|
||||||
|
if (!bgReading.filtered) {
|
||||||
|
bgFiltered.set(false, MainApp.gs(R.string.smbalwaysdisabled), this);
|
||||||
|
}
|
||||||
|
inputConstraints.copyReasons(bgFiltered);
|
||||||
|
|
||||||
Profiler.log(log, "detectSensitivityandCarbAbsorption()", startPart);
|
Profiler.log(log, "detectSensitivityandCarbAbsorption()", startPart);
|
||||||
Profiler.log(log, "SMB data gathering", start);
|
Profiler.log(log, "SMB data gathering", start);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue