Merge pull request #1761 from p5nbTgip0r/fix-medtronic-cannula-logging
Fix regression in medtronic cannula change detection
This commit is contained in:
commit
7bcfc29b36
1 changed files with 1 additions and 1 deletions
|
@ -397,7 +397,7 @@ class MedtronicHistoryData @Inject constructor(
|
|||
continue
|
||||
}
|
||||
if (primeRecord.atechDateTime > maxAllowedTimeInPast) {
|
||||
if (lastPrimeRecordTime != 0L && lastPrimeRecordTime < primeRecord.atechDateTime) {
|
||||
if (lastPrimeRecordTime < primeRecord.atechDateTime) {
|
||||
lastPrimeRecordTime = primeRecord.atechDateTime
|
||||
lastPrimeRecord = primeRecord
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue