From 97c11bc3e135665c14fb86147c6fcc9e36cbed45 Mon Sep 17 00:00:00 2001 From: Lorelai L Date: Sun, 11 Dec 2022 19:29:38 +0100 Subject: [PATCH] lastEventTimeLoaded is never updated - causes full fetch on each communication attempt --- .../nightscout/androidaps/danaRv2/comm/MsgHistoryEventsV2.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pump/danar/src/main/java/info/nightscout/androidaps/danaRv2/comm/MsgHistoryEventsV2.kt b/pump/danar/src/main/java/info/nightscout/androidaps/danaRv2/comm/MsgHistoryEventsV2.kt index a904ff0d12..6bc89b0077 100644 --- a/pump/danar/src/main/java/info/nightscout/androidaps/danaRv2/comm/MsgHistoryEventsV2.kt +++ b/pump/danar/src/main/java/info/nightscout/androidaps/danaRv2/comm/MsgHistoryEventsV2.kt @@ -277,7 +277,7 @@ class MsgHistoryEventsV2 constructor( status = "UNKNOWN " + dateUtil.timeString(datetime) } } - if (datetime > danaPump.lastEventTimeLoaded) danaPump.lastEventTimeLoaded = datetime + if (datetime > danaRv2Plugin.lastEventTimeLoaded) danaRv2Plugin.lastEventTimeLoaded = datetime rxBus.send(EventPumpStatusChanged(rh.gs(info.nightscout.pump.dana.R.string.processinghistory) + ": " + status)) } } \ No newline at end of file