From e948a6f955945063cc891eff9a021ab4133dc5aa Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Mon, 7 Nov 2016 07:55:41 +0100 Subject: [PATCH] fix for net IOB --- .../info/nightscout/androidaps/plugins/OpenAPSMA/IobTotal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/OpenAPSMA/IobTotal.java b/app/src/main/java/info/nightscout/androidaps/plugins/OpenAPSMA/IobTotal.java index 7dcb1d04f3..b40c2db602 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/OpenAPSMA/IobTotal.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/OpenAPSMA/IobTotal.java @@ -42,7 +42,7 @@ public class IobTotal { public static IobTotal combine(IobTotal bolusIOB, IobTotal basalIob) { IobTotal result = new IobTotal(); - result.iob = bolusIOB.iob; + result.iob = bolusIOB.iob + basalIob.basaliob; result.activity = bolusIOB.activity; result.bolussnooze = bolusIOB.bolussnooze; result.basaliob = basalIob.basaliob;