Merge pull request #1663 from TebbeUbben/insight-eb-fix

Fix #1661
This commit is contained in:
AdrianLxM 2019-03-05 00:00:25 +01:00 committed by GitHub
commit ae47e4f148
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -715,6 +715,7 @@ public class LocalInsightPlugin extends PluginBase implements PumpInterface, Con
@Override @Override
public PumpEnactResult setExtendedBolus(Double insulin, Integer durationInMinutes) { public PumpEnactResult setExtendedBolus(Double insulin, Integer durationInMinutes) {
PumpEnactResult result = cancelExtendedBolusOnly(); PumpEnactResult result = cancelExtendedBolusOnly();
if (result.success) result = setExtendedBolusOnly(insulin, durationInMinutes);
try { try {
fetchStatus(); fetchStatus();
readHistory(); readHistory();