Skip to content

Commit 3f01d8c

Browse files
committed
Fixing share backfill condition
1 parent d7928a3 commit 3f01d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loop/Managers/DeviceDataManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ class DeviceDataManager: CarbStoreDelegate, TransmitterDelegate {
478478
}
479479

480480
// If our last glucose was less than 4 minutes ago, don't fetch.
481-
if let latestGlucose = glucoseStore.latestGlucose where latestGlucose.startDate.timeIntervalSinceNow <= -NSTimeInterval(minutes: 4) {
481+
if let latestGlucose = glucoseStore.latestGlucose where latestGlucose.startDate.timeIntervalSinceNow > -NSTimeInterval(minutes: 4) {
482482
completion?()
483483
return
484484
}

0 commit comments

Comments
 (0)