Add message to constraints if BG is not filtered.

This commit is contained in:
Johannes Mockenhaupt 2018-06-23 11:07:16 +02:00
parent 79dec2e871
commit 34ee125666
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -192,6 +192,12 @@ public class OpenAPSSMBPlugin extends PluginBase implements APSInterface {
MainApp.getConstraintChecker().isSMBModeEnabled(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, "SMB data gathering", start);