Only check reservoir level before bolus if data is available.
This commit is contained in:
parent
bd87a893c2
commit
3b7045227e
|
@ -509,7 +509,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
||||||
.comment(MainApp.gs(R.string.combo_error_no_bolus_delivered));
|
.comment(MainApp.gs(R.string.combo_error_no_bolus_delivered));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stateResult.reservoirLevel - 0.5 < detailedBolusInfo.insulin) {
|
if (stateResult.reservoirLevel != -1 && stateResult.reservoirLevel - 0.5 < detailedBolusInfo.insulin) {
|
||||||
return new PumpEnactResult().success(false).enacted(false)
|
return new PumpEnactResult().success(false).enacted(false)
|
||||||
.comment(MainApp.gs(R.string.combo_reservoir_level_insufficient_for_bolus));
|
.comment(MainApp.gs(R.string.combo_reservoir_level_insufficient_for_bolus));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue