This commit is contained in:
Johannes Mockenhaupt 2017-07-15 21:26:37 +02:00
parent 4c0944b9f8
commit 69e560baee
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -264,7 +264,6 @@ public class ComboPlugin implements PluginBase, PumpInterface {
// writing carb treatments to the history table. What's PumpEnactResult for again? // writing carb treatments to the history table. What's PumpEnactResult for again?
@Override @Override
public PumpEnactResult deliverTreatment(DetailedBolusInfo detailedBolusInfo) { public PumpEnactResult deliverTreatment(DetailedBolusInfo detailedBolusInfo) {
log.debug("deliver treatment called with dbi: " + detailedBolusInfo);
if (detailedBolusInfo.insulin > 0 || detailedBolusInfo.carbs > 0) { if (detailedBolusInfo.insulin > 0 || detailedBolusInfo.carbs > 0) {
PumpEnactResult result = new PumpEnactResult(); PumpEnactResult result = new PumpEnactResult();
if (detailedBolusInfo.insulin > 0) { if (detailedBolusInfo.insulin > 0) {
@ -335,10 +334,8 @@ public class ComboPlugin implements PluginBase, PumpInterface {
} catch (Exception e) { } catch (Exception e) {
statusSummary = "Error"; statusSummary = "Error";
} }
if (commandResult != null && commandResult.success) {
// just leave it open, to avoid more errors
ruffyScripter.disconnect(); ruffyScripter.disconnect();
}
MainApp.bus().post(new EventComboPumpUpdateGUI()); MainApp.bus().post(new EventComboPumpUpdateGUI());
} }
} }