Merge pull request #416 from jotomo/vpump-enact

VirtualPump: set PumpEnactResult.enacted.
This commit is contained in:
Milos Kozak 2017-09-14 10:06:01 +02:00 committed by GitHub
commit 01002f11e7

View file

@ -218,6 +218,7 @@ public class VirtualPumpPlugin implements PluginBase, PumpInterface {
result.success = true;
result.bolusDelivered = detailedBolusInfo.insulin;
result.carbsDelivered = detailedBolusInfo.carbs;
result.enacted = result.bolusDelivered > 0 || result.carbsDelivered > 0;
result.comment = MainApp.instance().getString(R.string.virtualpump_resultok);
Double delivering = 0d;