VirtualPump: set PumpEnactResult.enacted.

(cherry picked from commit ec49bc3)
This commit is contained in:
Johannes Mockenhaupt 2017-09-13 12:59:29 +02:00
parent e3ae7bbeaf
commit cb3b472488
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -217,6 +217,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;