Cleanup.
This commit is contained in:
parent
4c0944b9f8
commit
69e560baee
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue