From a76d2f97e2fe6c2f80c3f81674410103eafe835c Mon Sep 17 00:00:00 2001 From: Yury Pshenichny Date: Mon, 22 May 2023 18:09:05 +0300 Subject: [PATCH] Skipped creation of "dummy cancel temp basal" records for temp basals which are already paired with real cancels --- .../plugins/pump/medtronic/data/MedtronicHistoryData.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pump/medtronic/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/data/MedtronicHistoryData.kt b/pump/medtronic/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/data/MedtronicHistoryData.kt index 8fdea9f65e..515ff23b94 100644 --- a/pump/medtronic/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/data/MedtronicHistoryData.kt +++ b/pump/medtronic/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/data/MedtronicHistoryData.kt @@ -796,7 +796,7 @@ class MedtronicHistoryData @Inject constructor( previousItem = null } - if (tempBasalProcessDTO.itemOneTbr!!.isZeroTBR) { + if (tempBasalProcessDTO.itemOneTbr!!.isZeroTBR && tempBasalProcessDTO.itemTwo == null ) { previousItem = tempBasalProcessDTO } }