Merge pull request #2550 from yp1ripe/fix-medtronic-history-zero-temps-with-cancels

Skipped creation of "dummy cancel temp basal" records for temp basals which are already paired with real cancels
This commit is contained in:
Milos Kozak 2023-08-21 11:27:44 +02:00 committed by GitHub
commit 719192e170
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -796,7 +796,7 @@ class MedtronicHistoryData @Inject constructor(
previousItem = null
}
if (tempBasalProcessDTO.itemOneTbr!!.isZeroTBR) {
if (tempBasalProcessDTO.itemOneTbr!!.isZeroTBR && tempBasalProcessDTO.itemTwo == null ) {
previousItem = tempBasalProcessDTO
}
}