From 3d238e3adbfb3fbfd43ec066a46d42a0239b659a Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Fri, 2 Sep 2016 13:35:10 +0200 Subject: [PATCH] reset flag when pump is changed --- .../androidaps/plugins/DanaR/comm/MsgSettingShippingInfo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/comm/MsgSettingShippingInfo.java b/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/comm/MsgSettingShippingInfo.java index ccecfbbd6c..81b1a11eb6 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/comm/MsgSettingShippingInfo.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/comm/MsgSettingShippingInfo.java @@ -24,7 +24,8 @@ public class MsgSettingShippingInfo extends MessageBase { DanaRPlugin.getDanaRPump().shippingCountry = asciiStringFromBuff(bytes, 13, 3); if (DanaRPlugin.getDanaRPump().shippingDate.getTime() > new Date(116, 4, 1).getTime()) { DanaRPlugin.getDanaRPump().isNewPump = true; - } + } else + DanaRPlugin.getDanaRPump().isNewPump = false; if (Config.logDanaMessageDetail) { log.debug("Serial number: " + DanaRPlugin.getDanaRPump().serialNumber); log.debug("Shipping date: " + DanaRPlugin.getDanaRPump().shippingDate);