From 7ab336bbdbc8ca563b1154c41505a535d99d11ee Mon Sep 17 00:00:00 2001 From: Pete Schwamb Date: Tue, 13 Oct 2026 11:16:34 -0500 Subject: [PATCH] Tag backfill readings Samples from sensor(_:didReadBackfill:) are marked isBackfill. A backfill record that turns out to be the newest reading (the live reply was lost) is still a recovered sample, so it is tagged too. --- G7SensorKit/G7CGMManager/G7CGMManager.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/G7SensorKit/G7CGMManager/G7CGMManager.swift b/G7SensorKit/G7CGMManager/G7CGMManager.swift index 85ef939..8f595ef 100644 --- a/G7SensorKit/G7CGMManager/G7CGMManager.swift +++ b/G7SensorKit/G7CGMManager/G7CGMManager.swift @@ -1224,7 +1224,8 @@ extension G7CGMManager: G7SensorDelegate { isDisplayOnly: entry.glucoseIsDisplayOnly, wasUserEntered: entry.glucoseIsDisplayOnly, syncIdentifier: generateSyncIdentifier(timestamp: entry.timestamp), - device: device + device: device, + isBackfill: true ) }